Clarification about histogram metric and buckets #897
Closed
tbolon
announced in
Community Discussions
Replies: 1 comment 4 replies
-
|
Sorry to bump this question, but I have seen other discussions about the spec of metrics, but nothing regarding histograms. Is there anyone here able to anwser my question? Perhaps I was not clear enough? Or I missed something obvious? For me, it seems there is no clear end-to-end method to read and analyze histogram metrics emitted by opentelemetry with, for example, grafana. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a question about current histogram metric and buckets. I was trying to exploit histogram metrics in a rendering solution (grafana or influxdb) and have hard time trying to obtain percentiles based on current histogram bucket format.
It seems the payload is quite different from openmetrics and prometheus:
In OpenMetrics, histogram buckets counts are cumulative: buckets contains count value from interval AND previous buckets.
It's the same in prometheus:
But in OpenTelemetry, buckets only contains count inside the bucket interval (see also the spec):
The important part is: The sum of the bucket_counts must equal the value in the count field.
In prometheus there is already some function to handle histogram buckets, where the bucket bound is defined as a tag, and extract percentile information expecting cumulative buckets.
But with this difference, I don't see an easy way to do something useful with common metrics rendering systems, as the bucket system seems to be totally different from common system.
Do you have any comment or explanation about this? Is there any reason for having a different format?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions