01 Sep 2025
10:16 AM
- last edited on
17 Dec 2025
10:24 AM
by
IzabelaRokita
I need the count of running services and stopped services against each management zones in dynatrace dashboard(gen3). Below dql is not working
fetch dt.entity.os_service, dt.entity.host
| lookup dt.entity.host, from: runsOn, sourceField: id
| fieldsAdd mz = entityAttr(dt.entity.host, "managementZones")
| filter isNotNull(mz)
| expand dt.osservice.availability
| summarize running_services = countIf(value == 1), stopped_services = countIf(value == 0), total_services = count() by: entity.name, mz
| sort mz asc
17 Dec 2025 01:08 PM
Hey @donaannie1 ,
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you! 😊
Please let me know what works best for you.
Featured Posts