# Show Host Name along with Process Name in Dashboard Tile (without renaming process)

**URL:** <https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834>\
**Category:** Open Q&A\
**Tags:** dashboards-classic\
**Created:** [October 7, 2022, 9:27pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834 "2022-10-07T21:27:48Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 7, 2022, 9:27pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/1 "2022-10-07T21:27:48Z")

</div>

I have a dashboard graph using metric key&nbsp;builtin:tech.generic.mem.usage and filtering to a specific process, showing 20+ hosts with that process. I am aware of how you can append or put the host name into the process name so that the process name is changed but we do not want to rename the process name. Is there a way of somehow also showing the hostname for each process in the dashboard tile? Keeping in mind that I do not want to rename the process to include the host name.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 8, 2022, 7:00am UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/2 "2022-10-08T07:00:24Z")

</div>

Hi&nbsp;[@sivart\_89](https://community.dynatrace.com/user/17361),

You can’t solve it with builtin:tech.generic.mem.usage metric becasue ithas only one dimension for splitby: process group instance.

 ![Mizs_0-1665211241783.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/b/1b8dbf8e6f72a402d224d9c86cfcef3cc1b40b6e.png)

I have found another metric which has more dimensions but I don not understand the collection logic because it is not continous and I have not found any other information about this metric in the documnetation.

 ![Mizs_1-1665212089936.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/c/2cb5f824a09438e70bfc7a9f51b77f394780ce60.png)

builtin:process.memory:splitBy(“dt.entity.process\_group\_instance”,“host.name”):sort(value(auto,descending)):limit(10)

Result in the demo live:

 ![Mizs_2-1665212327666.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/50805b81a431e7c0e364a8bdc5f165c8ee4456d9.png)

Could you please check it in your environmnet.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 8, 2022, 9:00am UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/3 "2022-10-08T09:00:10Z")

</div>

Hey&nbsp;[@sivart\_89](https://community.dynatrace.com/user/17361)&nbsp;and&nbsp;[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;,  
why are you not using the [:parents](https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#parents) transformation in the code tab? This adds the host dimension to the existing metric.

```markup
builtin:tech.generic.mem.usage:parents:splitBy("dt.entity.process_group_instance","dt.entity.host"):sort(value(auto,descending)):limit(100)

```

Super cool, but often overlooked feature.

Regards  
Julius

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 8, 2022, 10:19am UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/4 "2022-10-08T10:19:08Z")

</div>

**Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)**

**It is noted. 🙂 Thanks for sharing it!**

**Best regards,**

Mizső

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 10, 2022, 2:24pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/5 "2022-10-10T14:24:58Z")

</div>

Thanks for the info here. Seems we are not collecting data for this metric for whatever reason, ever ran into this?

 ![travis_anderson_0-1665411843835.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/c/2c7eaa16adbd6ae8ad64f23bd7e772987f1de369.png)

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 10, 2022, 3:35pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/6 "2022-10-10T15:35:38Z")

</div>

Hi&nbsp;[@sivart\_89](https://community.dynatrace.com/user/17361),

This is not a proper metric for you sorry. You should use your original metric with the suggestion of Julius. I tried the parents transformation and worked fine with your original metric.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 10, 2022, 6:22pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/7 "2022-10-10T18:22:07Z")

</div>

Very interesting! I’ll be the first to note that the transformations are not something I look too much at, guess I should. I charted this out and yes it works great for when you are not filtering to a specific process but in our case we have a specific process name. Have you been able to get this to work when filtering to a specific process?

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 10, 2022, 6:22pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/8 "2022-10-10T18:22:56Z")

</div>

Thanks. Just replied to Julius. As noted with that comment, it seems the hostname does not show when filtering to a specific process but works fine if you are not doing any filtering.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 10, 2022, 8:09pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/9 "2022-10-10T20:09:26Z")

</div>

[@sivart\_89](https://community.dynatrace.com/user/17361)&nbsp; sure it works, this is an example - what issues do you have?

```auto
builtin:tech.generic.mem.usage
:filter(and(or(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityName.startsWith(~"SpringBoot api-gateway-*~")")))))
:parents
:splitBy("dt.entity.process_group_instance","dt.entity.host")
:sort(value(auto,descending))
:limit(100)

```

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 10, 2022, 8:38pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/10 "2022-10-10T20:38:18Z")

</div>

I think I didn’t have the transformation in the right spot 🙂 I see it now when I filter only with the process name but we are also using a tag filter coupled with the process name. When using the tag filter I do not see the host name but if I remove it so that the only filter is the process name then I do see it. I think this works for us but still trying to understand why it isn’t working with the tag filter

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 11, 2022, 7:43am UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/11 "2022-10-11T07:43:38Z")

</div>

Can you paste your metric selector?

It works for me:

 ![Julius_Loman_0-1665474209897.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/3/d38d221a711ff06f5b9395e0b9f33e3be82a8457.png)

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [October 13, 2022, 2:13pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/12 "2022-10-13T14:13:03Z")

</div>

thanks for teh screenshot, this helped a lot. I see what I did wrong, I did not have the dt\_entity\_host in my split by. Thanks for the help here! I’ve got a lot to learn with metric expressions

Before:

:splitBy(“dt.entity.process\_group\_instance”)

After:

:splitBy(“dt.entity.process\_group\_instance”,“dt.entity.host”)

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [November 7, 2022, 6:20pm UTC](https://community.dynatrace.com/t/show-host-name-along-with-process-name-in-dashboard-tile-without-renaming-process/36834/13 "2022-11-07T18:20:23Z")

</div>

Wow, freaking amazing.&nbsp; had no idea that this could be done.&nbsp; Thanks for sharing.
