-
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
[exporter/prometheusremotewrite] Duplicate attributes when using resource_to_telemetry_conversion #34909
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Notes from triage:
What behavior did you expect? Did you expect the values from target_info to remain unchanged? Or did you expect the names from your prometheus job/instance to be kept? |
Ok, you're right, dropping the duplicate attributes cleans it up and removes the duplicates. I guess the expectation when using this feature is that the metric names are all sanitized the same way which would eliminate these duplicates. Especially since it seems that Prometheus always outputs '_' regardless of the internal metric name, and Grafana always displays underscores too. |
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/prometheusremotewrite
What happened?
Description
When scraping metrics target with a
target_info
and enablingresource_to_telemetry_conversion
on the Prom remote write exporter, some attributes are duplicated and concatenated with;
.Steps to Reproduce
Scrape target producing the following:
Expected Result
No duplicate values in the final output in Grafana / Loki.
Actual Result
Getting duplicate values in metric attributes concatenated with ';' in
deployment_environment
,service_instance_id
andservice_name
when this appears in Loki/Grafana. For exampledeployment_environment="qa;qa"
.Collector version
0.104.0
Environment information
Environment
OS: Linux / Kubernetes
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: