You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #931 we've implemented the counter that can both increase and decrease. However, in Prometheus a counter can only increase monotonically. If the counter decreases, functions of Prometheus such as rate() and increase() cannot be used to compute QPS and "recent" count.
In consideration of the problem, this kind of counter is moved to the gauge. Therefore, the gauge is added with increment() and decrement() functions, which can only be used for integral types.
The text was updated successfully, but these errors were encountered:
empiredan
changed the title
Feature(new_metrics): make the counter monotonic
Feature(new_metrics): make the counter increment monotonically
Apr 19, 2022
In #931 we've implemented the counter that can both increase and decrease. However, in Prometheus a counter can only increase monotonically. If the counter decreases, functions of Prometheus such as rate() and increase() cannot be used to compute QPS and "recent" count.
In consideration of the problem, this kind of counter is moved to the gauge. Therefore, the gauge is added with increment() and decrement() functions, which can only be used for integral types.
The text was updated successfully, but these errors were encountered: