# Availability, through Process Groups or by Services

**URL:** <https://community.dynatrace.com/t/availability-through-process-groups-or-by-services/51058>\
**Category:** Open Q&A\
**Tags:** management-zones, dynatrace-managed, process-groups, services, dynatrace-api\
**Created:** [April 3, 2025, 6:20pm UTC](https://community.dynatrace.com/t/availability-through-process-groups-or-by-services/51058 "2025-04-03T18:20:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bs43](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bs43](https://community.dynatrace.com/u/bs43)\
**Post date:** [April 3, 2025, 6:20pm UTC](https://community.dynatrace.com/t/availability-through-process-groups-or-by-services/51058/1 "2025-04-03T18:20:27Z")

</div>

Trying to take availability of particular management zones but we cannot explicitly do that,&nbsp;  
so i have this api&nbsp; &nbsp;**builtin:pgi.availability:splitBy(“dt.entity.process\_group\_instance”):sort(value(auto,descending)):limit(2)**&nbsp;  
But this api will fetch all the process groups so, i what to identify those group with a management zone name,&nbsp;  
LIke : list mzname(selecting one mzname) → its process group → availability of the process&nbsp;  
Any suggestions for api’s&nbsp; or **can we do the same with services.**

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 3, 2025, 11:09pm UTC](https://community.dynatrace.com/t/availability-through-process-groups-or-by-services/51058/2 "2025-04-03T23:09:37Z")

</div>

Hi [@bs43](https://community.dynatrace.com/user/88207) yes, you can do it selecting the MZ filter

 ![DanielS_0-1743720942843.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/1/e1f471c0c97de5c8057f033f3756adbab4633836.png)

or you can filter by MZ in advanced mode:

```markup
builtin:pgi.availability
:filter(in("dt.entity.process_group_instance", entitySelector("type(~"PROCESS_GROUP_INSTANCE~"),mzName(~"YourMZName~")")))
:splitBy("dt.entity.process_group_instance")
:sort(value(auto,descending))
:limit(2)

```

Keep in mind that what we are using in the data explorer are metrics

---

<div class="post-metadata">

**Author:** ![bs43](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bs43](https://community.dynatrace.com/u/bs43)\
**Post date:** [April 7, 2025, 5:55am UTC](https://community.dynatrace.com/t/availability-through-process-groups-or-by-services/51058/3 "2025-04-07T05:55:35Z")

</div>

Hi&nbsp;[@DanielS](https://community.dynatrace.com/user/35788), Got availability status for processes segregated by mznames.  
Thanks.
