Skip to content

Commit

Permalink
Add selector to apiserver_request_slo_duration_seconds_count recordin…
Browse files Browse the repository at this point in the history
…g rule
  • Loading branch information
frederiko committed Jun 6, 2023
1 parent b5c70aa commit 17d278b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/kube_apiserver.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
{
record: 'cluster_verb_scope:apiserver_request_slo_duration_seconds_count:increase1h',
expr: |||
sum by (%(clusterLabel)s, verb, scope) (increase(apiserver_request_slo_duration_seconds_count[1h]))
sum by (%(clusterLabel)s, verb, scope) (increase(apiserver_request_slo_duration_seconds_count{%(kubeApiserverSelector)s}[1h]))
||| % $._config,
},
{
Expand Down

0 comments on commit 17d278b

Please sign in to comment.