From 6d85ac4b45cb638c8c55a3f37a9f4b98d331dca2 Mon Sep 17 00:00:00 2001 From: Taissir Chaari Date: Wed, 14 Dec 2022 09:22:50 +0100 Subject: [PATCH 1/2] [INFOTAIN-30812] add slo for MediaResouce service --- .../slo/AWA_dfl_MediaResource_Requests.tf | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 EMEA_PROD/slo/AWA_dfl_MediaResource_Requests.tf diff --git a/EMEA_PROD/slo/AWA_dfl_MediaResource_Requests.tf b/EMEA_PROD/slo/AWA_dfl_MediaResource_Requests.tf new file mode 100644 index 0000000..6861874 --- /dev/null +++ b/EMEA_PROD/slo/AWA_dfl_MediaResource_Requests.tf @@ -0,0 +1,41 @@ +module AWA_dfl_MediaResource_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "AWA-dfl - MediaResource - Requests" + description = "Success rate of MediaResource" + + + #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(~"MediaResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"getMediaList~")"))))) + :splitBy()) +/ +(builtin:service.keyRequest.count.server:filter(and(or + (in("dt.entity.service_method",entitySelector("type(service_method),fromRelationship.isServiceMethodOfService(type(~"SERVICE~"), + entityName.in(~"MediaResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"getMediaList~")"))))) + :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 + +} \ No newline at end of file From d14d751f5c38ad339327e21eff4f9b9405fbcf2f Mon Sep 17 00:00:00 2001 From: Taissir Chaari Date: Mon, 19 Dec 2022 10:50:52 +0100 Subject: [PATCH 2/2] [INFOTAIN-30812] add two slo for ping and config server --- .../slo/AWA_dfl_ConfigResource_Requests.tf | 41 +++++++++++++++++++ .../slo/AWA_dfl_PingResource_Requests.tf | 41 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 EMEA_PROD/slo/AWA_dfl_ConfigResource_Requests.tf create mode 100644 EMEA_PROD/slo/AWA_dfl_PingResource_Requests.tf diff --git a/EMEA_PROD/slo/AWA_dfl_ConfigResource_Requests.tf b/EMEA_PROD/slo/AWA_dfl_ConfigResource_Requests.tf new file mode 100644 index 0000000..c38bb92 --- /dev/null +++ b/EMEA_PROD/slo/AWA_dfl_ConfigResource_Requests.tf @@ -0,0 +1,41 @@ +module AWA_dfl_MediaResource_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "AWA-dfl - ConfigResource - Requests" + description = "Success rate of ConfigResource" + + + #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(~"ConfigResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"getConfig~")"))))) + :splitBy()) +/ +(builtin:service.keyRequest.count.server:filter(and(or + (in("dt.entity.service_method",entitySelector("type(service_method),fromRelationship.isServiceMethodOfService(type(~"SERVICE~"), + entityName.in(~"ConfigResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"getConfig~")"))))) + :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 + +} \ No newline at end of file diff --git a/EMEA_PROD/slo/AWA_dfl_PingResource_Requests.tf b/EMEA_PROD/slo/AWA_dfl_PingResource_Requests.tf new file mode 100644 index 0000000..0e85d61 --- /dev/null +++ b/EMEA_PROD/slo/AWA_dfl_PingResource_Requests.tf @@ -0,0 +1,41 @@ +module AWA_dfl_MediaResource_Requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "AWA-dfl - ConfigResource - Requests" + description = "Success rate of ConfigResource" + + + #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(~"PingResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"ping~")"))))) + :splitBy()) +/ +(builtin:service.keyRequest.count.server:filter(and(or + (in("dt.entity.service_method",entitySelector("type(service_method),fromRelationship.isServiceMethodOfService(type(~"SERVICE~"), + entityName.in(~"PingResource - awa - prod~"), tag(~"Environment:PROD~")), + entityName.in(~"ping~")"))))) + :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 + +} \ No newline at end of file