07 Jan 2026 06:28 PM
i have a dynatrace otel collector installed on a windows vm and have enabled otel collector self health check. however in the out of the box otel dashboard i see service name as dynatrace-otel-collector even if they are installed in seperate VMs. it is possible to rename the service name to reflect the host name so we can distinguish the data based on host names?
08 Jan 2026 11:53 AM
Hi,
You can try updating your otel-collector-config.yaml and add a resource processor to override service.name with the host name:
processors:
resource:
attributes:
- key: service.name
from_attribute: host.name
action: upsertMake sure the processor is used in the pipeline:
service:
pipelines:
metrics:
receivers: [otlp]
processors: [resource]
exporters: [otlphttp]
Alternatively, you can set the service name manually per VM, for example:
processors:
resource:
attributes:
- key: service.name
value: dynatrace-otel-collector-${HOSTNAME}
action: upsert
Featured Posts