24 Dec 2025 12:22 PM
Hello.
I am struggling to create a REQUEST COUNT metric for the Services targeting, all Services that run on specific hosts (filter by hostname, eg. contains("something")).
BR
24 Dec 2025 02:09 PM
Hi theodore,
Would this work for you? You use the Data explorer to look at the fromRelationships from that specific service.
builtin:service.request.count:splitBy("dt.entity.service"):filter(in("dt.entity.service", entitySelector("type(~"SERVICE~"),fromRelationship.runsOnHost(type(~"HOST~"),entityName.contains(~"YOURHOST~"))")))
KR.
Michiel
24 Dec 2025 02:54 PM
Hello @michiel_otten.
I tried it but no results are returned. Something missing maybe(?).
24 Dec 2025 03:04 PM - edited 24 Dec 2025 03:07 PM
Yes, by me! 😉
I've succesfully exectuted this one on the playground
builtin:service.requestCount.total:splitBy("dt.entity.service"):filter(in("dt.entity.service", entitySelector("type(~"SERVICE~"),fromRelationship.runsOnHost(type(~"HOST~"),entityName.contains(~"lnx1-demo.c.dynatrace-demoability.internal~"))")))I mentioned the wrong metric.
Featured Posts