Prometheus and PromQL 3 · Rates and aggregation
Aggregate across series
Sum the rate across all instances, keeping one series per job and status.
sum by (job, status) (rate(http_requests_total[5m]))
Official Prometheus and PromQL 3 documentation
More rates and aggregation commands
- Per-second rate of a counter
- Total increase over a window
- Error ratio
- 95th percentile latency
- Top N series
- Average over time
All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet