diff --git a/cortex-mixin/recording_rules.libsonnet b/cortex-mixin/recording_rules.libsonnet index 433fa8e6..4074cc00 100644 --- a/cortex-mixin/recording_rules.libsonnet +++ b/cortex-mixin/recording_rules.libsonnet @@ -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