Prometheus and PromQL 3 · Rates and aggregation
Per-second rate of a counter
Average per-second increase over five minutes. Always use rate (or increase) on counters, never the raw value.
rate(http_requests_total[5m])
Official Prometheus and PromQL 3 documentation
More rates and aggregation commands
- Total increase over a window
- Aggregate across series
- Error ratio
- 95th percentile latency
- Top N series
- Average over time
All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet