# Is it possible to rename Dynatrace OTel collector with a Windows host name

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-rename-dynatrace-otel-collector-with-a-windows-host-name/54557>\
**Category:** OpenTelemetry\
**Tags:** opentelemetry\
**Created:** [January 7, 2026, 6:28pm UTC](https://community.dynatrace.com/t/is-it-possible-to-rename-dynatrace-otel-collector-with-a-windows-host-name/54557 "2026-01-07T18:28:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamodgautam](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kamodgautam](https://community.dynatrace.com/u/kamodgautam)\
**Post date:** [January 7, 2026, 6:28pm UTC](https://community.dynatrace.com/t/is-it-possible-to-rename-dynatrace-otel-collector-with-a-windows-host-name/54557/1 "2026-01-07T18:28:40Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [January 8, 2026, 11:53am UTC](https://community.dynatrace.com/t/is-it-possible-to-rename-dynatrace-otel-collector-with-a-windows-host-name/54557/2 "2026-01-08T11:53:59Z")

</div>

Hi,  
You can try updating your otel-collector-config.yaml and add a resource processor to override service.name with the host name:

```markup
processors:
  resource:
    attributes:
      - key: service.name
        from_attribute: host.name
        action: upsert

```

Make sure the processor is used in the pipeline:

```markup
service:
  pipelines:
    metrics:
      receivers: [otlp]
      processors: [resource]
      exporters: [otlphttp]

```

Alternatively, you can set the service name manually per VM, for example:

```markup
processors:
  resource:
    attributes:
      - key: service.name
        value: dynatrace-otel-collector-${HOSTNAME}
        action: upsert

```

---

<div class="post-metadata">

**Author:** ![kamodgautam](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kamodgautam](https://community.dynatrace.com/u/kamodgautam)\
**Post date:** [January 12, 2026, 8:59pm UTC](https://community.dynatrace.com/t/is-it-possible-to-rename-dynatrace-otel-collector-with-a-windows-host-name/54557/3 "2026-01-12T20:59:48Z")

</div>

I did give that config a shot but it doesn’t seem to work.
