Skip to content

Commit

Permalink
Merge pull request #849 from frederiko/recording_rules
Browse files Browse the repository at this point in the history
Add selector to apiserver_request_slo_duration_seconds_count recording rule
  • Loading branch information
povilasv authored Jun 7, 2023
2 parents 42dfc87 + 17d278b commit 003ba5e
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 003ba5e

Please sign in to comment.