Skip to main content

metrics

Function metrics 

Source
pub fn metrics(_caller: Actor, pool: &State<DbPool>) -> (ContentType, String)
Expand description

GET /metrics — Prometheus exposition of current-state gauges. Token-gated (the Actor guard; scrape with ?token=). Pool gauges are always emitted (in-memory); DB-derived gauges are best-effort — on a pool/db hiccup they are omitted (and cortex_db_reachable is 0) rather than reporting a wrong value.