creating new SLOs for eRoute in EMEA and NA

feature/INFOTAIN-30043-lis-cdr-create-slos
Mohammed Abadel 2022-10-18 17:59:37 +02:00
parent 5e6da8b7fc
commit c24310726c
4 changed files with 133 additions and 9 deletions

View File

@ -10,13 +10,34 @@ module Wirkkette__eRoute_Service__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD),entityId(\"SERVICE_METHOD-7C48284B11F3AF29\",\"SERVICE_METHOD-9C843B404C55C413\")"
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(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/eu/2.5/eroute/protobuf3~",
~"/api/eu/2.5/eroute-costs/protobuf3~"
)"))))):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/eu/2.5/eroute/protobuf3~",
~"/api/eu/2.5/eroute-costs/protobuf3~"
)"))))):splitBy()))
EOT
#if not set (removed) it's defaulted to "-1d"
timeframe = "-1d"
@ -25,9 +46,7 @@ module Wirkkette__eRoute_Service__-_Reliability_of_key_requests {
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
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 Wirkkette__eRoute_Service__-_Reliability_of_key_requests {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "Wirkkette \"eRoute Service\" - Alternative metric"
description = "Alternative metric based on 5xx error rate"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<EOT
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/eu/2.5/eroute/protobuf3~",
~"/api/eu/2.5/eroute-costs/protobuf3~"
)")))):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

@ -10,11 +10,34 @@ module Wirkkette__eRoute_Service__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD),entityId(\"SERVICE_METHOD-1720E3C97E8E2E39\",\"SERVICE_METHOD-07E04A9F286075BA\")"
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(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/na/2.5/eroute-costs/protobuf3~",
~"/api/na/2.5/eroute/protobuf3~"
)"))))):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/na/2.5/eroute-costs/protobuf3~",
~"/api/na/2.5/eroute/protobuf3~"
)"))))):splitBy()))
EOT
#if not set (removed) it's defaulted to "-1d"

View File

@ -0,0 +1,41 @@
module Wirkkette__eRoute_Service__-_Reliability_of_key_requests {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "Wirkkette \"eRoute Service\" - Alternative metric"
description = "Alternative metric based on 5xx error rate"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<EOT
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"Netty on 0.0.0.0:8080 - eroute-ext - prod~"
)
)
,entityName.in(
~"/api/na/2.5/eroute-costs/protobuf3~",
~"/api/na/2.5/eroute/protobuf3~"
)")))):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
}