07 Jan 2026
06:28 PM
- last edited on
15 Jan 2026
07:58 AM
by
GosiaMurawska
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 the service name as dynatrace-otel-collector even if they are installed in separate VMs. Is it possible to rename the service name to reflect the hostname so we can distinguish the data based on hostnames?
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
12 Jan 2026 08:59 PM
I did give that config a shot but it doesn't seem to work.
Featured Posts