-
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
[resourcetotelemetry] - Using resource_to_telemetry_conversion enabled causes broken internal otelcol_ metrics #14900
Comments
Pinging code owners: @Aneurysm9. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I found the reason, the duplicated label is |
Any updates? I met the same problem. |
I tested it with |
I think it should be incorporated into the resource-to-telemetry helper. |
Pinging code owners for pkg/resourcetotelemetry: @mx-psi. 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 am not sure what the intended fix for this issue is. Do we want the helper to do nothing when adding the labels would result in duplicates?
What does this imply in terms of the generated OTLP payload? I don't quite understand this sentence, I assume this is some Prometheus-specific behavior that I am not aware of |
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. |
@Aneurysm9 can you help answering #14900 (comment) ? Thanks! |
Maybe instead of producing an error, it should prefer one over the other. It seems like the otel-generated one should take precedence? I.e. only change instance to service.instance.id if it doesn't already exist? |
@Aneurysm9 @dashpole Hi! I ran into the same issue and it's blocking us. prometheusexporter already has deduplication logic for labels. Maybe it's worth expanding to this case as it's done in PRW exporter? |
I have fixed the issue using the metric relabeling configuration in the receiver:
Explanation Prometheus exporter is automatically generating not only Collector version I have tested this on is 0.78. |
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. |
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. |
Besides
|
@netsandbox @krsmanovic how did you find out which labels are conflicting? |
I see the same error
I have added label drop. But still the issue is present
|
What happened?
Description
There is a prometheus exporter error
failed to convert metric otelcol_xxxxxxxxxxxxx: duplicate label names
if you enableSteps to Reproduce
Add a receiver :
and enable resource_to_telemetry_conversion at prometheus exporter level.
(I didn't tested yet with prometheusremotewriteexporter)
Collector version
0.61.0
Environment information
Environment
OS: windows server 2019
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: