counter reset
The moment a counter drops back to zero, usually because the process restarted.
In more detail
Subtracting an old counter value from a new one across a reset gives a negative, meaningless number. PromQL rate and increase detect a fall and treat it as a reset, adding the new value instead of the difference.
Example
Samples 100, 130, 160, 5, 35 over 60 seconds: a raw difference of -65, but an increase of 95 with reset handling.Related terms
- counter — A metric that only ever goes up, such as the total number of requests or errors, from which rates are calculated.
- rate() — The PromQL function that turns a counter into its average increase per second over a time window, handling restarts.
- increase() — The PromQL function that reports how much a counter grew in total over a time window, handling restarts.
Taught in
- Metric Types: Counters And Gauges — Full-Stack Observability: Metrics, Tracing & Logging
- Rates And Increases Over Time — Full-Stack Observability: Metrics, Tracing & Logging
- Off By Five: What Prometheus Is Not For — Prometheus Certified Associate (PCA) Exam Prep
- Four Thousand Requests Vanished: Rates And Derivatives — Prometheus Certified Associate (PCA) Exam Prep
- PromQL Sprint: Ten Queries At Minute Twenty Two — Prometheus Certified Associate (PCA) Exam Prep
- Seventy Seven Percent, Book Now? The Full Mock — Prometheus Certified Associate (PCA) Exam Prep