-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Adjust Prometheus histogram buckets calculation #26903
Comments
Pinging @elastic/integrations (Team:Integrations) |
Hi! We're labeling this issue as |
Still relevant. |
The Prometheus Beat histogram implementation is solely focusing on centroids: https://github.com/elastic/beats/blob/main/x-pack/metricbeat/module/prometheus/collector/histogram.go#L48 From what I udnerstand, both types of Histograms we support (either TDigest or HDR), both support only count and values and the only difference is how we calculate the values. So Is there any assumption why we solely focus on centroids? |
@gizas in my reply under the comment you linked:
i.e. the primary reason for calculating centroids is that we assume the use of T-Digest because HDRHistogram does not support negative values. |
Ohh thank you @axw ! Really helpful. So checking the reference Building Histogram: So this is a choice that users make on the tool of that produces the metrics. So if customer sends |
Not sure if I understand your question. We support it by converting the histogram to T-Digest. There will be some loss of precision, but it'll still be supported. |
Ok we support it because the format of data are the same in both types, but yes I am worried about this loss of precision. (this is actually what the can not support it was referring to). Thank you again |
@gizas should we close this issue? in favor of elastic/integrations#5042 ? |
Closing as per comment above, duplicate of elastic/integrations#5042 |
We want to use the same algorithm to translate Prometheus histograms into Elasticsearch histograms. We have agreed on the approach to something like this:
I few changes are need to comply with this implementation in Beats, mainly:
The text was updated successfully, but these errors were encountered: