Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Entity Selector - Service to Service Relationship

Theodore_x86
Advisor

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

 

Houston, we have a problem.
3 REPLIES 3

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

#Performance matter!

Hello @michiel_otten.

I tried it but no results are returned. Something missing maybe(?).

Houston, we have a problem.

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.

 

michiel_otten_0-1766588870946.png

 

#Performance matter!

Featured Posts