diff --git a/EMEA_PROD/slo/VCIS_GEN2_OnlineWeather.tf b/EMEA_PROD/slo/VCIS_GEN2_OnlineWeather.tf new file mode 100644 index 0000000..e7602b4 --- /dev/null +++ b/EMEA_PROD/slo/VCIS_GEN2_OnlineWeather.tf @@ -0,0 +1,33 @@ +module VCIS_GEN2_OnlineWeather { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - Online Weather" + + description = "Online Weather" + + + + #entity selector object + filter = "type(\"SERVICE\"),entityName(\"server (/cdp/release/vehicle/online_weather) - 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_OnlineWeather_Requests.tf b/EMEA_PROD/slo/VCIS_GEN2_OnlineWeather_Requests.tf new file mode 100644 index 0000000..a40a4ea --- /dev/null +++ b/EMEA_PROD/slo/VCIS_GEN2_OnlineWeather_Requests.tf @@ -0,0 +1,60 @@ +module VCIS_GEN2_OnlineWeather_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - Online Weather Requests" + description = "Success rate of GEN2 Online Weather" + + + #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/online_weather) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in( + ~"/cdp/release/vehicle/online_weather/servlet/widget~", + ~"/cdp/release/vehicle/online_weather/servlet/weather~", + ~"/cdp/release/vehicle/online_weather/servlet/rainfallimage~", + ~"/cdp/release/vehicle/online_weather/servlet/radar~", + ~"/cdp/release/vehicle/online_weather/servlet/image~", + ~"/cdp/release/vehicle/online_weather/servlet/geoCodingOverview~" + )"))))):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/online_weather) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in( + ~"/cdp/release/vehicle/online_weather/servlet/widget~", + ~"/cdp/release/vehicle/online_weather/servlet/weather~", + ~"/cdp/release/vehicle/online_weather/servlet/rainfallimage~", + ~"/cdp/release/vehicle/online_weather/servlet/radar~", + ~"/cdp/release/vehicle/online_weather/servlet/image~", + ~"/cdp/release/vehicle/online_weather/servlet/geoCodingOverview~" + )"))))):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 + +} diff --git a/NA_PROD/slo/VCIS_GEN2_OnlineWeather.tf b/NA_PROD/slo/VCIS_GEN2_OnlineWeather.tf new file mode 100644 index 0000000..e7602b4 --- /dev/null +++ b/NA_PROD/slo/VCIS_GEN2_OnlineWeather.tf @@ -0,0 +1,33 @@ +module VCIS_GEN2_OnlineWeather { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - Online Weather" + + description = "Online Weather" + + + + #entity selector object + filter = "type(\"SERVICE\"),entityName(\"server (/cdp/release/vehicle/online_weather) - 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/NA_PROD/slo/VCIS_GEN2_OnlineWeather_Requests.tf b/NA_PROD/slo/VCIS_GEN2_OnlineWeather_Requests.tf new file mode 100644 index 0000000..dab7573 --- /dev/null +++ b/NA_PROD/slo/VCIS_GEN2_OnlineWeather_Requests.tf @@ -0,0 +1,46 @@ +module VCIS_GEN2_OnlineWeather_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "VCIS-GEN2 - Online Weather Requests" + description = "Success rate of GEN2 Online Weather" + + + #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/online_weather) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in(~"/cdp/release/vehicle/online_weather/servlet/weather~")"))))):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/online_weather) - vcis-information - prod~" + ), + tag(~"Environment:PROD~") + ) + ,entityName.in(~"/cdp/release/vehicle/online_weather/servlet/weather~")"))))):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 + +}