Open robertcoltheart opened 2 weeks ago
Pinging code owners:
exporter/prometheusremotewrite: @Aneurysm9 @rapphil @dashpole
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Notes from triage:
service.name
and service_name
both become service_name
when translating to PRW.service.name
will stay service.name
.service.name
will keep only the service_name
from your target_info
metric, and removing service_name
will keep only the job
from the prometheus receiver (which becomes the service.name
).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.
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