0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 17:59:41 +00:00
libsql/libsql-server/scripts/prometheus_docker.yml
Piotr Sarna 1f8973a476 scripts: add a dockerized prometheus helper
It makes metrics development easier, with the prometheus image
already seeded with configuration that scrapes events
from localhost:8081.

Runs properly with `cargo run -- --admin-listen-addr 0.0.0.0:8081`
2023-11-02 15:15:26 +01:00

15 lines
314 B
YAML

# my global config
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_timeout: 4s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["127.0.0.1:9090"]
- job_name: "sqld"
metrics_path: "/metrics"
static_configs:
- targets: ["host.docker.internal:8081"]