-
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] Add support for delta exponential histograms #8350
[exporter/datadog] Add support for delta exponential histograms #8350
Conversation
887006a
to
de2deb1
Compare
de2deb1
to
f654ed7
Compare
exporter/datadogexporter/internal/model/translator/exponential_histograms_translator.go
Outdated
Show resolved
Hide resolved
exporter/datadogexporter/internal/model/translator/exponential_histograms_translator.go
Outdated
Show resolved
Hide resolved
exporter/datadogexporter/internal/model/translator/exponential_histograms_translator_test.go
Show resolved
Hide resolved
exporter/datadogexporter/internal/model/translator/exponential_histograms_translator_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good (pending merging the other PR on datadog-agent and adding a changelog entry)
There are a bunch of conflicts that need to be solved here |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you mark it as ready for review, I think we can mark this as ready to merge 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve conflicts and we'll get this reviewed/merged!
…-telemetry#8350) * [WIP] Add ExponentialHistogram support * Do not support cumulative expHists for now * Add unit tests * Update go.mod / go.sum * Fix rebase conflicts * Add MapMetrics tests * Fix go mod tidy errors * Update github.com/DataDog/datadog-agent/pkg/quantile * Refactor store creation in toStore method * Refactor tests to use public MapMetrics function * Add benchmarks * Update DataDog/datadog-agent/pkg/quantile version
Description:
Adds support for exporting delta exponential histograms as sketches to Datadog. The conversion is done as follows:
ExponentialHistogram -> DDSketch (done here by copying the buckets, with the same scale)
DDSketch -> Agent Sketch (done by
github.com/DataDog/datadog-agent/pkg/quantile
, in this PR)Optionally, the count and sum of the exponential histogram can also be sent as metrics. This behavior is managed by the
histograms.send_count_sum_metrics
(the same that is used for histograms - should it be a different one?).Cumulative histograms are left out for now (they'll require more involved changes, notably to compute the diff between two exponential histograms) and will be done in a later PR.
Note: this PR currently used unreleased versions of
github.com/DataDog/sketches-go
andgithub.com/DataDog/datadog-agent/pkg/quantile
that will be released at a later date. Once this happens, the go.mod should point to released versions.Link to tracking Issue: n/a
Testing: Added unit tests, as well as benchmarks for gauges, delta sums and delta exponential histograms, for comparison purposes.
Documentation: n/a