Skip to content

danmx/prometheus_null_adapter

 
 

Repository files navigation

Prometheus "NULL" Remote Storage Adapter to create your own!

Build on Linux Build on macOS Build on Windows
Build single binary on Linux

Prometheus remote storage adapter, which stores timeseries data into RDBMS.

Building and running

with Cargo

cargo build --release

then run,

target/release/prometheus_null_adapter web \
  --listen '0.0.0.0:8080'

with Docker

Write a docker-compose.yml like:

---
version: '3.7'

services:
  prometheus_null_adapter:
    container_name: prometheus_null_adapter
    hostname: prometheus_null_adapter
    image: prometheus_null_adapter
    build:
      context: ./
    restart: always
    command: "web --listen '0.0.0.0:8080'"

then,

docker-comopse build # It takes long time. Be patient....
docker-comopse up -d

Using from Prometheus

Write these line to /etc/prometheus/config.yml

remote_write:
  - url: 'http://<hostname>:8080/write'
remote_read:
  - url: 'http://<hostname>:8080/read'

About

Prometheus "NULL" Remote Storage Adapter to create your own!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.3%
  • Other 0.7%