Pull request #46: [INFOTAIN-30812] add new slos for dfl_MediaResouce services

Merge in OPAPM/coco_terraform_config from feature/INFOTAIN-30812-dfl-dynatrace-slo to master

* commit 'd14d751f5c38ad339327e21eff4f9b9405fbcf2f':
  [INFOTAIN-30812] add two slo for ping and config server
  [INFOTAIN-30812] add slo for MediaResouce service
OPMAAS-3175
Taissir Chaari (ext.) 2022-12-19 10:00:36 +00:00 committed by Mohammed Abadel (ext.)
commit ca83a54d81
3 changed files with 123 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}