-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/datadog] Histograms metrics are showing wrong values in Datadog #7065
Comments
@mx-psi can you look into this? |
Hi @ransoor2, thanks for the code to reproduce and for your patience while I was out. The default mode for histograms, distributions, compresses the data in a way that may cause some deviation from the true value sent. This is specially visible in small-scale examples with very few datapoints. If you have a more realistic example where the values don't make sense, please post it here. It's on our roadmap to
Until we do (1), if, for a concrete metric, you are having trouble using the distributions method, you can switch to the |
Thank you for your response Pablo Thanks, |
After #7830 is merged, Datadog distributions produced from histograms will have the exact value for sum, count and average. |
Describe the bug
When reporting histograms, we see wrong values as Datadog Distributions.
In this example, we created a histogram with boundaries of
{1000, 10000, 100000}
and reported multiple times the values{500,5000,50000}
What did you expect to see?
I expected to see the same bucket values in Datadog as I see in the collector's logging exporter:
Three series of points, with values of 1000, 10000, 100000
What did you see instead?
Two series with a value of 1000, one series with a value of 10000
Result of the query
avg:test.histogram{*} by {test}
:Result
What version did you use?
Version: v0.41.0
What config did you use?
Config
Environment
Ubuntu 14
Additional context
Full example:
main.go
go.mod
The text was updated successfully, but these errors were encountered: