increase()
The PromQL function that reports how much a counter grew in total over a time window, handling restarts.
In more detail
increase suits questions such as how many requests arrived yesterday. It is rate multiplied by the window length, so both handle counter resets the same way.
Example
increase(http_requests_total[1d])Related terms
- rate() — The PromQL function that turns a counter into its average increase per second over a time window, handling restarts.
- counter — A metric that only ever goes up, such as the total number of requests or errors, from which rates are calculated.
- counter reset — The moment a counter drops back to zero, usually because the process restarted.
Taught in
- Metric Types: Counters And Gauges — Full-Stack Observability: Metrics, Tracing & Logging
- Rates And Increases Over Time — Full-Stack Observability: Metrics, Tracing & Logging
- PromQL Sprint: Ten Queries At Minute Twenty Two — Prometheus Certified Associate (PCA) Exam Prep