Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (44 loc) · 1.78 KB

README.md

File metadata and controls

60 lines (44 loc) · 1.78 KB

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'