export ROUTER_PASSWORD='SEKRIT'
export ROUTER_HOST='amplifi.lan'
RUST_LOG=info cargo run
curl -s http://localhost:9898/metrics
See the included grafana.json
for an example dashboard
Example prometheus.yml
global:
scrape_interval: 20s
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 20s
static_configs:
- targets: ['host.docker.internal:9898']
Run Prometheus in Docker:
docker run \
-p 9090:9090 \
-v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus