-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove delta adjustment from summaries by default in EMF exporter #3408
Conversation
/assign @hossain-rayhan |
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. I would expect two different unit tests- one with prometheus-receiver
and the other without prometheus-receiver
.
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.
LGTM and Thanks!
Done. Thanks for the advice. |
May I know why |
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.
Thanks.
dd149aa
to
1d3b100
Compare
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.
LGTM. Merge after the build passes.
As of Prometheus 2.16.0 (released on 2020-02-13), datapoints with duplicate label keys MUST be rejected and the Prometheus RemoteWrite exporter tests were failing, but that was a red herring as the real issue was really in the receiver. Fixes open-telemetry/prometheus-interoperability-spec#44 Fixes #3407
Why do we need it?
Fixes aws-observability/aws-otel-collector#510.
This is a replacement PR for #3373.
In CloudWatch, we expect metrics to be sent as delta so the optimization of deltas can be fully utilized.
Currently, in prometheus receiver, the
count
andsum
are not delta:On the other hand, in OTEL SDKs, the same type is calculated as delta.
This PR checks whether metrics are tagged with prometheus attribute to decide whether EMF exporter should calculate delta for summaries.