From d97b389401aa998a6b0fa87c487a822e7a58af88 Mon Sep 17 00:00:00 2001 From: "Pedro Vieira (CTW)" Date: Tue, 18 Oct 2022 17:18:34 +0100 Subject: [PATCH] OPMAAS-2671 & INFOTAIN-30041: Add Gen2 ConnNav SLOs Requests and correct AppStore --- EMEA_PROD/slo/VCIS_GEN2_AppStore.tf | 2 +- EMEA_PROD/slo/VCIS_GEN2_AppStore_Requests.tf | 4 +- EMEA_PROD/slo/VCIS_GEN2_ConnNav.tf | 33 +++++++++++ EMEA_PROD/slo/VCIS_GEN2_ConnNav_Requests.tf | 58 ++++++++++++++++++++ 4 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 EMEA_PROD/slo/VCIS_GEN2_ConnNav.tf create mode 100644 EMEA_PROD/slo/VCIS_GEN2_ConnNav_Requests.tf diff --git a/EMEA_PROD/slo/VCIS_GEN2_AppStore.tf b/EMEA_PROD/slo/VCIS_GEN2_AppStore.tf index ac38a1b..de251e5 100644 --- a/EMEA_PROD/slo/VCIS_GEN2_AppStore.tf +++ b/EMEA_PROD/slo/VCIS_GEN2_AppStore.tf @@ -1,4 +1,4 @@ -module ICES_-_FestiveModeAPI { +module VCIS_GEN2_AppStore { source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" diff --git a/EMEA_PROD/slo/VCIS_GEN2_AppStore_Requests.tf b/EMEA_PROD/slo/VCIS_GEN2_AppStore_Requests.tf index 9c0f4e3..b6a9c85 100644 --- a/EMEA_PROD/slo/VCIS_GEN2_AppStore_Requests.tf +++ b/EMEA_PROD/slo/VCIS_GEN2_AppStore_Requests.tf @@ -1,4 +1,4 @@ -module ICES_FestiveModeAPI_getFestival { +module VCIS_GEN2_AppStore_Requests { source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" @@ -21,7 +21,7 @@ module ICES_FestiveModeAPI_getFestival { tag(~"Environment:PROD~") ) ,entityName.in( - ~"/cdp/release/vehicle/appstore/servlet/manage~" + ~"/cdp/release/vehicle/appstore/servlet/manage~", ~"/cdp/release/vehicle/appstore/servlet/start~", ~"/cdp/release/vehicle/appstore/servlet/linkstoreimage~", ~"/cdp/release/vehicle/appstore/servlet/ajaxReload~" diff --git a/EMEA_PROD/slo/VCIS_GEN2_ConnNav.tf b/EMEA_PROD/slo/VCIS_GEN2_ConnNav.tf new file mode 100644 index 0000000..50e4357 --- /dev/null +++ b/EMEA_PROD/slo/VCIS_GEN2_ConnNav.tf @@ -0,0 +1,33 @@ +module VCIS_GEN2_ConnNav { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - ConnNav" + + description = "ConnNav" + + + + #entity selector object + filter = "type(\"SERVICE\"),entityName(\"server (/cdp/release/vehicle/connnav) - vcis-information - prod\"),tag(\"Environment:PROD\")" + + + #metric expression of the calculation as done in data explorer ui + metric_expression = "(100)*((1)-( builtin:service.errors.fivexx.rate:splitBy():avg:auto:sort(value(avg,descending)):limit(10))/( builtin:service.requestCount.total:splitBy():sum:auto:sort(value(sum,descending)):limit(10)))" + + + #if not set (removed) it's defaulted to "-1d" + timeframe = "-1d" + + + #currently the only possible value + evaluation = "AGGREGATE" + + #Target and warning percentage of the SLO as double + target = 98 + #if not set(removed) it's defaulted to 98 + warning = 99 + #if not set(removed) it's defaulted to 99 + +} diff --git a/EMEA_PROD/slo/VCIS_GEN2_ConnNav_Requests.tf b/EMEA_PROD/slo/VCIS_GEN2_ConnNav_Requests.tf new file mode 100644 index 0000000..f34a67d --- /dev/null +++ b/EMEA_PROD/slo/VCIS_GEN2_ConnNav_Requests.tf @@ -0,0 +1,58 @@ +module VCIS_GEN2_ConnNav_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - ConnNav Requests" + description = "Success rate of GEN2 ConnNav" + + + #entity selector object + filter = "" + + #metric expression of the calculation as done in data explorer ui + metric_expression = <<-EOT + +(100)*((1)-(builtin:service.keyRequest.errors.fivexx.count:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"server (/cdp/release/vehicle/connnav) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in( + ~"/cdp/release/vehicle/connnav/servlet/getLocalSearch~", + ~"/cdp/release/vehicle/connnav/servlet/getLocalSuggest~", + ~"/cdp/release/vehicle/connnav/servlet/setClickTracking~", + ~"/cdp/release/vehicle/connnav/servlet/navigateToCalendar~", + ~"/cdp/release/vehicle/connnav/servlet/resetVehicleData~" + )"))))):splitBy()) + / + (builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"server (/cdp/release/vehicle/connnav) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in( + ~"/cdp/release/vehicle/connnav/servlet/getLocalSearch~", + ~"/cdp/release/vehicle/connnav/servlet/getLocalSuggest~", + ~"/cdp/release/vehicle/connnav/servlet/setClickTracking~", + ~"/cdp/release/vehicle/connnav/servlet/navigateToCalendar~", + ~"/cdp/release/vehicle/connnav/servlet/resetVehicleData~" + )"))))):splitBy())) + +EOT + +#if not set (removed) it's defaulted to "-1d" +timeframe = "-1d" + +#currently the only possible value +evaluation = "AGGREGATE" + +#Target and warning percentage of the SLO as double +target = 98 #if not set(removed) it's defaulted to 98 +warning = 99 #if not set(removed) it's defaulted to 99 + +}