Prometheus remote storage adapter, which stores timeseries data into RDBMS.
cargo build --release
then run,
target/release/prometheus_null_adapter web \
--listen '0.0.0.0:8080'
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
Write these line to /etc/prometheus/config.yml
remote_write:
- url: 'http://<hostname>:8080/write'
remote_read:
- url: 'http://<hostname>:8080/read'