Prometheus and PromQL 3 · Rates and aggregation
Detect a missing metric
Returns 1 when no series match, which is useful for alerting on vanished targets.
absent(up{job="api"})
Official Prometheus and PromQL 3 documentation
More rates and aggregation commands
- Per-second rate of a counter
- Total increase over a window
- Aggregate across series
- Error ratio
- 95th percentile latency
- Top N series
All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet