From cee386678c689169e5f931ab41da60f7459f669e Mon Sep 17 00:00:00 2001 From: Albert Mikaelyan Date: Sun, 27 Feb 2022 13:54:56 +0200 Subject: [PATCH] fix compatibility rule to convert to old node_cpu metric Signed-off-by: Albert Mikaelyan --- docs/example-16-compatibility-rules-new-to-old.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example-16-compatibility-rules-new-to-old.yml b/docs/example-16-compatibility-rules-new-to-old.yml index 1d94672c..3d74eb5d 100644 --- a/docs/example-16-compatibility-rules-new-to-old.yml +++ b/docs/example-16-compatibility-rules-new-to-old.yml @@ -21,7 +21,7 @@ groups: record: node_intr - name: node_exporter-16-cpu rules: - - expr: label_replace(node_cpu_seconds_total, "cpu", "$1", "cpu", "cpu(.+)") + - expr: label_replace(node_cpu_seconds_total, "cpu", "cpu$1", "cpu", "(.+)") record: node_cpu - name: node_exporter-16-diskstats rules: