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

How we can calculate service availability % using metrics or logs

heramb_sawant
Organizer

Hi ,
I want to find out availability % of each service in specific environment. Can somebody please help me on this.

Regards,
Heramb Sawant

6 REPLIES 6

Mohamed_Hamdy
DynaMight Champion
DynaMight Champion

Hi @heramb_sawant ,

you can use SLO, or use the same method in the Data Explorer

https://docs.dynatrace.com/docs/shortlink/slo-definitions-examples

https://docs.dynatrace.com/docs/shortlink/slo-basics

Best Regards

Mohamed

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

Hi Mohamed_Hamdy ,
(100) X (builtin:service.errors.server.successCount:splitBy())/(builtin:service.requestCount.server:splitBy())

is this right way to find the service availability?

Hi @heramb_sawant , yes you can use it and the following is a sample to give you the availability percentage of a specific service, this sample you can use in the global demo environment

((100)*(builtin:service.errors.server.successCount:filter(and(in("dt.entity.service",entitySelector("type(SERVICE),entityName.equals(azure easytravelazure-weather-service)")))):splitBy())/(builtin:service.requestCount.server:filter(and(in("dt.entity.service",entitySelector("type(SERVICE),entityName.equals(azure easytravelazure-weather-service)")))):splitBy())):setUnit(Percent)

 

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

Thanks Mohamed for providing solution.

Can we get the same output( service availability % )  using dynatrace API?? 

Regards,
Heramb

Hi @heramb_sawant, yes, you can use metric API, using the above sample, you can copy the request as metric API directly same as the below screenshots

Mohamed_Hamdy_0-1723093196509.png

Mohamed_Hamdy_1-1723093228022.png

 

Regards,

Mohamed

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

Thanks for this example. This is really helpful.

Featured Posts