30 Jul 2024 05:24 AM
Hi ,
I want to find out availability % of each service in specific environment. Can somebody please help me on this.
Regards,
Heramb Sawant
Solved! Go to Solution.
30 Jul 2024 05:31 AM
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
30 Jul 2024 05:44 AM
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?
30 Jul 2024 06:37 AM
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)
08 Aug 2024 05:38 AM
Thanks Mohamed for providing solution.
Can we get the same output( service availability % ) using dynatrace API??
Regards,
Heramb
08 Aug 2024 06:04 AM
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
Regards,
Mohamed
29 Aug 2024 02:52 PM
Thanks for this example. This is really helpful.