-
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
Sampling race condition causes initial metric to be reported with a 0 value #31807
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @sergiuiacob1, can you try using the cumulative to delta processor instead of the This is what we currently recommend for these setups, and I want to verify if the issue persists when using this component instead of the fallback logic in the exporter. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
exporter/datadog
What happened?
Description
I've set up a counter metric to track "events". The counter is emitted using Prometheus Push Gateway and scraped by an Open Telemetry agent. I've set OTel to export data to Datadog. I've set it to report only the delta for the counters, i.e.
I can see OTel scraping the first 2 values for my metric with the new set of label values
Datadog receives new time series at 18:36:05. Because the value difference between the 2 timestamps is 0, the initial metric value (initial delta) is 0 as well.
The previous Datadog metric timestamp was at 18:35:05.
Steps to Reproduce
0
Expected Result
OTel should always report the delta for an initial set of label values for a counter to be that metric's value – in my case, 1.
Specifically, in my screenshot in Datadog, I should have seen the initial delta, which is
1
for my metric.Actual Result
Sometimes the initial counter value is the true initial delta (the first value counted), sometimes it's 0.
Collector version
0.96.0
Environment information
Environment
OS: Ubuntu 20.04
OTel version: 0.96.0. Also reproduced on 0.71.0
OpenTelemetry Collector configuration
The text was updated successfully, but these errors were encountered: