-
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/awsemf] Exporter ignores the first batch of a metric send to cloudwatch #16218
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
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. |
I got some pointers in the downstream issue aws-observability/aws-otel-collector#1653 and will create a PR to make this configurable |
…ue of delta metrics (open-telemetry#16218)
…ue of delta metrics (open-telemetry#16218)
…ue of delta metrics (open-telemetry#16218)
Component(s)
exporter/awsemf
What happened?
Description
The
awsemf
exporter of the ADOT distribution of OTEL sends faulty data for the first batch of a metric send to AWS Cloudwatch.Steps to reproduce
default
profile. (Or change the value of theAWS_PROFILE
env var in step 3)emfbug-reproduction-embedded-metrics-otel
by runningaws logs create-log-group --log-group-name emfbug-reproduction-embedded-metrics-otel
docker run -d --rm -p 4317:4317 \ -e AWS_REGION=eu-central-1 \ -e AWS_PROFILE=default \ -v ~/.aws:/root/.aws \ -v "$(pwd)/otel-agent-config.yaml":/otel-local-config.yaml \ --name awscollector \ public.ecr.aws/aws-observability/aws-otel-collector:latest \ --config otel-local-config.yaml;
yarn install
yarn start
1
to the counter four times in total. We Split these four increments on two batches with two increments each. Between these batches there is a wait time to allow the OTEL agent to flush the values to AWS.fields counter_name,@timestamp
on the log groupemfbug-reproduction-embedded-metrics-otel
) to see the published EMF Metrics.docker rm -f awscollector
andaws logs delete-log-group --log-group-name emfbug-reproduction-embedded-metrics-otel
Expected Result
We expect the log-group to contain two entries with a value of
2
. One entry for each batch.Actual result
We only get one entry with a value of
2
. The first batch gets its value set to0
.Additional information
ConsoleMetricExporter
alongside the one that exports the metrics to the OTEL agent. This Exporter print the correct values to the console.file
exporter to the OTEL agent pipeline. This one also shows the correct values.Collector version
v0.23.0
Environment information
Environment
OS: OSX
OpenTelemetry Collector configuration
Log output
Additional context
ConsoleMetricExporter
alongside the one that exports the metrics to the OTEL agent. This Exporter print the correct values to the console.file
exporter to the OTEL agent pipeline. This one also shows the correct values.The text was updated successfully, but these errors were encountered: