Files
zkldi_Tachi/dev/observability/alloy-config.alloy
T
zk edda03e916 sunday 5th apr (rip mark hollis) (#52)
* lots of work

* feat: move rg-stats in, ensure consistency in db queries

* the clocks dont work

* almost

* ok jesus been and gone now back to usual
2026-04-06 01:25:30 +01:00

21 lines
449 B
Plaintext

// Scrape Tachi API Prometheus metrics and remote-write to local Prometheus.
prometheus.remote_write "default" {
endpoint {
url = "http://tachi-prometheus:9090/api/v1/write"
}
}
prometheus.scrape "tachi_api" {
targets = [
{
"__address__" = "tachi-dev:9779",
"job" = "tachi-api",
},
]
forward_to = [prometheus.remote_write.default.receiver]
scrape_interval = "15s"
metrics_path = "/metrics"
}