Replies: 1 comment
|
You can see it in the translator ( // Map service.name + service.namespace to job
// Map service.instance.id to instanceSo processors:
transform/drop_service_identity:
error_mode: ignore
metric_statements:
- context: resource
statements:
- delete_key(attributes, "service.name")
- delete_key(attributes, "service.namespace")
- delete_key(attributes, "service.instance.id")Two things to be aware of before you do that:
exporters:
prometheusremotewrite:
resource_to_telemetry_conversion:
enabled: true
exclude_service_attributes: true # skip service.* — they are already job/instanceDocs describe it as: "the If you can say which of the two you are after — removing the identity labels entirely, or removing the duplicated |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The metrics exported by prometheus have the extra labels
jobandinstance_id. I tried the following processors which are unable to get rid of them:I am using
otelcol-contrib version 0.142.0.Any idea why I am unable to remove these labels?
All reactions