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
Which feature or improvement would you like to request?
In an attempt to monitor my mail server with Prometheus, I noticed the histograms behave a bit strange. Instead of incrementing the corresponding bucket by 1 on each observation, the bucket is incremented by the observed value:
The observed value is added but as you can see in the code above the counter is incremented by one.
For example, if the histogram is measuring latencies, the current latency is added to the corresponding bucket and the counter is incremented by one.
Yes, I'm with you on that. But isn't it still incorrect behavior to add the entire value to the bucket? The Prometheus tutorial specifies a count of observations, not a per-bucket sum.
Which feature or improvement would you like to request?
In an attempt to monitor my mail server with Prometheus, I noticed the histograms behave a bit strange. Instead of incrementing the corresponding bucket by 1 on each observation, the bucket is incremented by the observed value:
mail-server/crates/trc/src/atomics/histogram.rs
Lines 42 to 47 in f4efa16
Also, shouldn't the comparison be inclusive, per Prometheus specification?
Is this really correct?
Is your feature request related to a problem?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: