Remote read storage uses promtool series notation
- Clone repo and run. It starts docker compose with prometheus and fake remote-read util
make demo - Open local prometheus (http://127.0.0.1:9090) and checkout
testmetric
-
Prepare configuration (see example.config.json). Please read promtool series notation
{ "input_series": [ { "interval": "1m", "series": "test{job='backfiller_test'}", "values": "0+1x100 99-1x99" }, { "interval": "10m", "series": "test{job='backfiller_test2'}", "values": "0+5x100" } ] } -
Run remote_read server
./prometheus-fake-remote-read --config ./your_config.json -
Add remote_read address to your prometheus configuration and restart prometheus
... remote_read: - url: "http://vscode:9999/read" ... -
For now you can query
testmetric. To updateprometheus-fake-remote-readconfiguration you need to restart util. No need to restart prometheus.
Run vscode with devcontainers. Prometheus and Grafana presents.