mirror of
https://github.com/tursodatabase/libsql.git
synced 2024-12-15 17:59:41 +00:00
1f8973a476
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`
15 lines
314 B
YAML
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"]
|