Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#379 from grafana/duologic/f…
Browse files Browse the repository at this point in the history
…ix_cpu_irate

fix(rules): upstream recording rule switched to sum_irate
  • Loading branch information
gouthamve authored Aug 25, 2021
2 parents cea7f02 + a283035 commit a0e1967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonnet/mimir-mixin/recording_rules.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
sum by (cluster, namespace, deployment) (
label_replace(
label_replace(
node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate,
node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate,
"deployment", "$1", "pod", "(.*)-(?:([0-9]+)|([a-z0-9]+)-([a-z0-9]+))"
),
# The question mark in "(.*?)" is used to make it non-greedy, otherwise it
Expand Down

0 comments on commit a0e1967

Please sign in to comment.