Adjusting SLOs for connected music to a) use the new services. b) use service names instead of ids.
parent
6e45a487cf
commit
a47bcccc17
|
|
@ -9,11 +9,17 @@ module Wirkkette__Connected__Music__-_Reliability_of_key_requests {
|
||||||
|
|
||||||
|
|
||||||
#entity selector object
|
#entity selector object
|
||||||
filter = "type(service),entityId(\"SERVICE-A72F6268DCF9508D\")"
|
filter = ""
|
||||||
|
|
||||||
|
|
||||||
#metric expression of the calculation as done in data explorer ui
|
#metric expression of the calculation as done in data explorer ui
|
||||||
metric_expression = "(100)*(1-((builtin:service.errors.fivexx.count:splitBy())/(builtin:service.requestCount.server:splitBy())))"
|
metric_expression = <<EOT
|
||||||
|
(100) - (builtin:service.errors.fivexx.rate:filter(and(or(in("dt.entity.service",entitySelector("type(service),
|
||||||
|
entityName(
|
||||||
|
~"SpotifyApi - avs - prod~"
|
||||||
|
)"))))):splitBy("dt.entity.service"))
|
||||||
|
|
||||||
|
EOT
|
||||||
|
|
||||||
|
|
||||||
#if not set (removed) it's defaulted to "-1d"
|
#if not set (removed) it's defaulted to "-1d"
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,17 @@ module Wirkkette__Connected__Music__-_Reliability_of_key_requests {
|
||||||
|
|
||||||
|
|
||||||
#entity selector object
|
#entity selector object
|
||||||
filter = "type(Service),entityId(\"SERVICE-A72F6268DCF9508D\")"
|
filter = ""
|
||||||
|
|
||||||
|
|
||||||
#metric expression of the calculation as done in data explorer ui
|
#metric expression of the calculation as done in data explorer ui
|
||||||
metric_expression = "(100)*(1-((builtin:service.errors.fivexx.count:splitBy())/(builtin:service.requestCount.server:splitBy())))"
|
metric_expression = <<EOT
|
||||||
|
(100) - (builtin:service.errors.fivexx.rate:filter(and(or(in("dt.entity.service",entitySelector("type(service),
|
||||||
|
entityName(
|
||||||
|
~"SpotifyApi - avs - prod~"
|
||||||
|
)"))))):splitBy("dt.entity.service"))
|
||||||
|
|
||||||
|
EOT
|
||||||
|
|
||||||
|
|
||||||
#if not set (removed) it's defaulted to "-1d"
|
#if not set (removed) it's defaulted to "-1d"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue