From b726a916acea56dda0d4e1f77548d6a612444165 Mon Sep 17 00:00:00 2001 From: Lorenzo Felletti <60483783+lorenzofelletti@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:42:36 +0000 Subject: [PATCH] fix: apiserver availability apiserver_request_sli_duration_seconds_count:increase30d (#998) * fix: double mutiplication (#2564) * fix: expr string interpolation --- rules/kube_apiserver-availability.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/kube_apiserver-availability.libsonnet b/rules/kube_apiserver-availability.libsonnet index c7a0378e9..25a63309a 100644 --- a/rules/kube_apiserver-availability.libsonnet +++ b/rules/kube_apiserver-availability.libsonnet @@ -50,8 +50,8 @@ { record: 'cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%s' % SLODays, expr: ||| - sum by (%s, verb, scope) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%s{le="+Inf"} * 24 * %s) - ||| % [$._config.clusterLabel, SLODays, $._config.SLOs.apiserver.days], + sum by (%s, verb, scope) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%s{le="+Inf"}) + ||| % [$._config.clusterLabel, SLODays], }, { record: 'apiserver_request:availability%s' % SLODays,