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

How to write a metric expression for adding response time for 2 service entity's in single expression.

banildt
Newcomer

I have to write a metric expression for adding response time for 2 service entity's in single metric expression for SLO creation.

I am good with Entity Selector, but coming to Metric expression for calculating the percentage i have doubt
 
Entity Selector :
type("service"),entityId("SERVICE-1","SERVICE-2"),mzName("XXXXX")
 
below is I used for metric expression,

((builtin:service.response.time:avg:partition("latency",value("good",lt(7000000))):splitBy():count:default(0))/(builtin:service.response.time:avg:splitBy():count)*(100))
 
I have a doubt, I think it may be averaging the response time for the service 1 and service 2 instead of adding them
 
Please help me on proper metric expression for this requirement
1 REPLY 1

Peter_Youssef
Champion

Hi @banildt 

It depends on how you should present the insights and then you can configure the metric and entity selector to achieve the target visualization or alerting.

  • Assess how the data should be calculated and shown and it will be easy to figure out the proper way of proceeding

You can also refer to the attached docs for review:

BR,

Peter

Dynatrace provides metrics expressions to get answers to simple and complex questions you have on your observed metrics. Metrics expressions are used to define your dashboards or extract data from Dynatrace through the Metrics API. In this observability clinic, we have Alberto Gelmi, Software ...

Featured Posts