diff --git a/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf b/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf index efeee74..6cefc89 100644 --- a/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf +++ b/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf @@ -10,12 +10,31 @@ module Wirkkette__IPA_Speech__-_Reliability_of_key_requests { #entity selector object - filter = "type(SERVICE_METHOD),entityId(\"SERVICE_METHOD-A47D63D3756DD049\")" + filter = "" #metric expression of the calculation as done in data explorer ui - metric_expression = "(100)*(builtin:service.keyRequest.errors.server.successCount:splitBy())/(builtin:service.keyRequest.count.server:splitBy())" - + metric_expression = <<-EOT +(100)*(builtin:service.keyRequest.errors.server.successCount:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"hvd (/hvd) - ipa-backend-cn - prod~" + ) + ) + ,entityName.in( + ~"/hvd/speech~" + )"))))):splitBy()) + / + (builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"hvd (/hvd) - ipa-backend-cn - prod~" + ) + ) + ,entityName.in( + ~"/hvd/speech~" + )"))))):splitBy()) + EOT #if not set (removed) it's defaulted to "-1d" timeframe = "-1w"