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.
4 REPLIES 4

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!

Hi @michiel_otten 

It is working indeed, by I think that shows the services running on the host. Quite useful, but not the case here. We want the services that send requests to the services running on the host.

BR

Houston, we have a problem.

Featured Posts