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 ?
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
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.
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.