I’ve created a metric to display the count of process running in host
builtin:pgi.availability.state:filter(and(or(in(“dt.entity.process_group”,entitySelector(“type(process_group),entityName(~“procesname~”)”))))):splitBy(“availability.state”):count:sort(value(avg,descending)):limit(20):default(0.0)
This query displays the count if default was not added, but if default was added it displays the process availability metric instead of count.
How can I see the count of running process and add a default value 0 if process is not running?