cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Split requests from a built-in metric by request name

Teddyl92
Visitor

Can we split requests from a built-in metric (builtin:service.requestCount.total) by request name in Data Explorer by using metric expressions or any other method? 

We want to avoid using custom metrics. 

5 REPLIES 5

Ana_Kuzmenchuk
Community Team
Community Team

Hi @Teddyl92, maybe this document can help. Cheers!

The only constant is change. Finding ways for great things to happen!

Hi,

I would like to see below kind of split in data explorer, how to do it using advanced mode without custom metrics

jnernest_0-1687324160348.png

thanks,

nathaniel

 

Hi @jnernest,

you can use the key requests metric which you can split by request name, but this will work only for requests that are marked as key requests (builtin:service.keyRequest.count.total:splitBy("dt.entity.service_method")

or 

if you still need to use the same data for requests associated with specific management zone for instance you can create calculated service metrics then you can use it in the data explorer and split by dimension which in your case will be the request. note that the calculated service metrics will consume DDUs

Mohamed_Hamdy_0-1687429465362.png

 

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

Hi @Mohamed_Hamdy 

thanks for the information, I am trying to adapt the first solution.

One more query on this keyrequest topic, if we have two keyrequest on different services with same name how can i filter it out in dashboard?

 

for example : motor insurance service has calculate request which has been marked as key request same way life insurance service also has calculate request 

thanks,

Nathaniel

 

Hi @jnernest,

sure, you can add multiple services, and you can use the following sample and replace service1, service2, service3 with your services and you can add more than that

builtin:service.keyRequest.count.total:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),fromRelationship.isServiceMethodOfService(type(SERVICE),entityName.in(~"service1~",~"service2~",~"service3~"))"))))):splitBy("dt.entity.service_method"):sort(value(auto,descending)):limit(20)

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

Featured Posts