fix compatibility rule to convert to old node_cpu metric

Signed-off-by: Albert Mikaelyan <tahvok@gmail.com>
This commit is contained in:
Albert Mikaelyan 2022-02-27 13:54:56 +02:00 committed by Johannes 'fish' Ziemke
parent 5a2c83d0f9
commit cee386678c

View File

@ -21,7 +21,7 @@ groups:
record: node_intr record: node_intr
- name: node_exporter-16-cpu - name: node_exporter-16-cpu
rules: 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 record: node_cpu
- name: node_exporter-16-diskstats - name: node_exporter-16-diskstats
rules: rules: