# Process group downtime per hostname in dashboard

**URL:** <https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [November 10, 2023, 4:47pm UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565 "2023-11-10T16:47:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALF](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@ALF](https://community.dynatrace.com/u/ALF)\
**Post date:** [November 10, 2023, 4:47pm UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565/1 "2023-11-10T16:47:54Z")

</div>

Hello

I’m looking for a way to visualize in a dashboard the moments when a process group instance is down on a host.

At this time I’m using the following metric query

builtin:tech.generic.processCount:filter(in(“dt.entity.process\_group\_instance”,entitySelector(“type(process\_group\_instance),entityName.equals(~“My Process Group Name~”)”))):parents:splitBy(“dt.entity.host”):min:names:sort(dimension(“dt.entity.host.name”,ascending))

On a dashboard the hostname disappears when the service is down on the host and shows if it’s up.

On the contrary, I would like the hostname to appear on the graphic, only if the process group is KO on the hostname.  
Is there a metric query to achieve this ?

I attach a screenshot of my actual dashboard.

 ![ALF_0-1699634851248.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/cd8294ab4e60f0f9fd70c5880cdb7acf21340132.png)

Regards

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 12, 2023, 3:48pm UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565/2 "2023-11-12T15:48:02Z")

</div>

Hi,

As far as I can recall, such a mechanism that something appears and disappears (as in the case of the hosts you write about) is not present in Dynatrace dashboards.

You might consider to verify the number of active process instances within a process group on a given host:  
builtin:tech.generic.processCount

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [January 20, 2024, 11:36am UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565/3 "2024-01-20T11:36:53Z")

</div>

Hi Radek,

I appreciate your reply

“You might consider to verify the number of active process instances within a process group on a given host:  
builtin:tech.generic.processCount”

I would like to do that, how does the query look like in a graph or in a single value dashboard,

I used this successfully to look for the CPU of that particular process

builtin:tech.generic.cpu.usage:filter(eq(“dt.entity.process\_group\_instance”,PROCESS\_GROUP\_INSTANCE-98CB935943677AB7)):splitBy(“dt.entity.process\_group\_instance”):max

I want to have that particular PROCESS\_GROUP\_INSTANCE

I appreciate you support

Marwan…

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [January 21, 2024, 4:17pm UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565/4 "2024-01-21T16:17:39Z")

</div>

I found the solution by grouping by technology and it works like a charm, I share the code below for anyone who wants to do that.

builtin:tech.generic.processCount:filter(and(or(in(“dt.entity.process\_group\_instance”,entitySelector(“type(process\_group\_instance),softwareTechnologies(~“WEBSPHERE~”)”))))):splitBy(“dt.entity.process\_group\_instance”):sort(value(auto,descending)):limit(100):lastReal

The only problem still it only shows that processes which are up but not those that are down. When the process is down Dynatrace does not collect and therefore it only shows what is up. This is not very useful.

Any idea?

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [January 21, 2024, 4:29pm UTC](https://community.dynatrace.com/t/process-group-downtime-per-hostname-in-dashboard/42565/5 "2024-01-21T16:29:02Z")

</div>

I think I was wrong, it should show all up or down state. I just needed to play around with the time frame. So the above solution is perfect and can be used for any process name or technology. This question can now be closed, I hope is useful for eveybody.
