-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Prom rw translation, handle identical values in duplicate labels. #35896
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
Comments
foo;foo
as the value.
Pinging code owners for pkg/translator/prometheusremotewrite: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for exporter/prometheusremotewrite: @Aneurysm9 @rapphil @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hey @dashpole, could we please get this assigned to @avanish-vaghela, we chatted on slack and he was interested in implementing this easy fix. |
I think it can only be assigned to otel members, but @avanish-vaghela, you can consider this yours to work on |
…ues if they are different (open-telemetry#36928) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description While translating two OTel attributes into Prometheus Labels, if both attributes results in the same Prometheus label and both have the same value, they won't be appended. **Example:** - "bar.one": "foo" - "bar/one": "foo" The above two attributes when translated to Prometheus label would become - Before the PR - "bar_one": "foo;foo" - After the PR: - "bar_one": "foo" <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#35896 <!--Describe what testing was performed and which tests were added.--> #### Testing - Unit test added <!--Describe the documentation added.--> #### Documentation - Change log entry added <!--Please delete paragraphs that you did not use before submitting.-->
…ues if they are different (open-telemetry#36928) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description While translating two OTel attributes into Prometheus Labels, if both attributes results in the same Prometheus label and both have the same value, they won't be appended. **Example:** - "bar.one": "foo" - "bar/one": "foo" The above two attributes when translated to Prometheus label would become - Before the PR - "bar_one": "foo;foo" - After the PR: - "bar_one": "foo" <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#35896 <!--Describe what testing was performed and which tests were added.--> #### Testing - Unit test added <!--Describe the documentation added.--> #### Documentation - Change log entry added <!--Please delete paragraphs that you did not use before submitting.-->
Uh oh!
There was an error while loading. Please reload this page.
Originally posted by @dashpole in #35751 (comment)
In append label value only if values are not identical.
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/translator/prometheusremotewrite/helper.go#L134
The text was updated successfully, but these errors were encountered: