-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is knowing that a Histogram/Summary sum is monotonic important? #187
Comments
This looks as if in the v1 of the protospec that this comment is gone which makes me think that this has been decided? |
@jmacd I think we need this for the Histogram (probably for Summary as well), because currently OpenMetrics requires us to not send the Sum if values can be negative. We may want to discuss this in the Prometheus wg. |
@bogdandrutu Can you comment on (a) if this is still an issue given the TODO is now gone and (b) how we resolve it. Proposal from DataModel SiG:
|
@jsuereth that is not 100% correct for the export. Reason is that I may not have a negative bucket defined but I may still have negative measurements, so the sum may still not be a Counter. |
We discussed this in the DataModel SiG.
|
So diving into this further, OpenMetrics defines two types of histograms with subtle differnces:
For the first, prometheus/OpenMetrics requires that all sums are monotonic and all measurements positive values from discrete events. For the second, you just grab what you found, which can include negative values. Aggregation for "GaugeHistogram" matches aggregation for Gauge I believe @jmacd wants to model the second type of histogram as an "instantaneous temporality" histogram. It's also possible we could allow a histogram-data-point to be exported from So, re-affirming the SiGs decision and casting a few lights on things that weren't clear to me until I got caught up on details from Start-Time-Discussions:
To resolve this bug, I'm adding description to the histogram OTLP proto to require non-negative measurements for now. We can expand support for more histogram types going forward. |
…patibility Fixes open-telemetry#187. - Summary data points must record non-negative values - Histogram sum can only be present if underlying measurements are non-negative. (Opening a bug to expand our API to allow this to present in more scenarios later)
…pat (#302) * Refine descriptions of Histogram+Summary for explicit OpenMetrics compatibility Fixes #187. - Summary data points must record non-negative values - Histogram sum can only be present if underlying measurements are non-negative. (Opening a bug to expand our API to allow this to present in more scenarios later) * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Joshua MacDonald <[email protected]> * Call out openmetrics specification * Update metrics.proto Co-authored-by: Bogdan Drutu <[email protected]> Co-authored-by: Bogdan Drutu <[email protected]> Co-authored-by: Joshua MacDonald <[email protected]>
Currently there is a TODO in the metrics proto that needs a decision:
The text was updated successfully, but these errors were encountered: