OPMAAS-3279 - INFOTAIN-30320: Update ICES FestiveMode accordingly recommendations.

feature/INFOTAIN-30320-update-existing-dashboards-with-suggestions-on-previous-pr
Antonio Canelas 2023-01-16 13:25:15 +00:00
parent 7effc94c41
commit 13bb61a73d
2 changed files with 12 additions and 13 deletions

View File

@ -7,19 +7,19 @@ module ICES_-_FestiveModeAPI {
description = "FestiveModeApi"
#entity selector object
filter = "type(\"SERVICE\"),entityName.in(\"FestiveModeApi\"),tag(\"Environment:PROD\")"
filter = "type(\"SERVICE\"),entityName.in(\"FestiveModeApi - ices - 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)))"
metric_expression = "(100)*((1)-(builtin:service.errors.fivexx.count: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"
#if not set (removed) it's defaulted to "-1d"
timeframe = "-1d"
#currently the only possible value
evaluation = "AGGREGATE"

View File

@ -10,12 +10,11 @@ module ICES_-_FestiveModeAPI {
#entity selector object
filter = "type(\"SERVICE\"),entityName.in(\"FestiveModeApi\"),tag(\"Environment:PROD\")"
filter = "type(\"SERVICE\"),entityName.in(\"FestiveModeApi - ices - 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)))"
metric_expression = "(100)*((1)-(builtin:service.errors.fivexx.count: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"