-
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/prometheusexporter] There are errors with prometheusexporter in otel collector log messages #24054
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
/label exporter/prometheus help-wanted -exporter/prometheus |
In Prometheus, this error notice frequently appears after a metric with the identical name and label values has already been gathered. If a metric with the same name and labels is collected more than once, Prometheus will throw this error because it expects metric names and label combinations to be unique. To prevent this error, make sure that each combination of metric names and label values is distinct, or change the metric names and/or label values to make them so. As an alternative, you can combine metrics with the same name and label combinations into a single metric by utilizing functions like sum() or avg(). |
@iblancasa is correct about the category of error. The interesting thing is that I don't see the |
@Aneurysm9 I didn't find service.instance.id resource attribute from my otel collector pod log. How to make the spanmetrics connector produce this value so that this error could be avoided? Thanks. |
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. |
Closing as inactive, please reopen if you still have issues. |
Component(s)
exporter/prometheus
What happened?
Description
I'm using prometheusexporter in my otel collector. I found the below errors with prometheusexporter in otel collector log messages.
I'm using auto-instrumentation for Java for my service, the instrumentation image is ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java:1.26.0.
Steps to Reproduce
Use prometheusexporter in otel collector config. After otel collector pod is running, can find the error messages from the otel collector pod log.
Expected Result
There is no error with prometheusexporter found in otel collector log messages.
Actual Result
Found errors with prometheusexporter in otel collector log messages.
Collector version
0.80.0
Environment information
Environment
OpenShift 4.12.16
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: