Skip to content

Commit

Permalink
fix: apiserver availability apiserver_request_sli_duration_seconds_co…
Browse files Browse the repository at this point in the history
…unt:increase30d (#998)

* fix: double mutiplication (#2564)

* fix: expr string interpolation
  • Loading branch information
lorenzofelletti authored Dec 16, 2024
1 parent bad0615 commit b726a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/kube_apiserver-availability.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b726a91

Please sign in to comment.