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 the 0.3 spec release, we removed options to say an instrument accepts only non-negative values and to say that an instrument accepts only ascending values. Both of these options are about monotonicity: in Counters, a non-negative input defines a monotonic sum. In Observers, there is a desire to report cumulative statistics (e.g., CPU usage). In both cases, the user should have a way to declare this option so that exporters know how to export these events.
We have discussed introducing new metric instruments instead of options for this, e.g., let Counter be restricted to non-negatives, and introduce UpDownCounter for counters that rise and fall.
Resolve in the 0.4 release. See the comment: #430 (comment)
The text was updated successfully, but these errors were encountered:
Our current thinking is:
(1) Counter should accept only non-negative values, thus always defines a monotonic sum (and Prometheus will know it)
(2) We can introduce an "UpDownCounter" if users complain about wanting it.
(3) We let "Observer" be unrestricted, not monotonic.
(4) We add "MonotonicObserver" to get the behavior that Prometheus wants.
This is consistent with a general approach of "no instrument options, only optional instruments".
In the 0.3 spec release, we removed options to say an instrument accepts only non-negative values and to say that an instrument accepts only ascending values. Both of these options are about monotonicity: in Counters, a non-negative input defines a monotonic sum. In Observers, there is a desire to report cumulative statistics (e.g., CPU usage). In both cases, the user should have a way to declare this option so that exporters know how to export these events.
We have discussed introducing new metric instruments instead of options for this, e.g., let
Counter
be restricted to non-negatives, and introduceUpDownCounter
for counters that rise and fall.Resolve in the 0.4 release. See the comment: #430 (comment)
The text was updated successfully, but these errors were encountered: