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: