diff --git a/CHANGELOG.md b/CHANGELOG.md index d4f88773..40b51d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ * [BUGFIX] Fixed rollout progress dashboard to correctly work when a Cortex service deployment spans across multiple zones (a zone is expected to have the `zone-[a-z]` suffix). #366 * [BUGFIX] Fixed rollout progress dashboard to include query-scheduler too. #376 * [BUGFIX] Fixed `-distributor.extend-writes` setting on ruler when `unregister_ingesters_on_shutdown` is disabled. #369 +* [BUGFIX] Upstream recording rule `node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate` renamed. #379 ## 1.9.0 / 2021-05-18 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