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

Taught in

References

Certification courses