mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
fix compatibility rule to convert to old node_cpu metric
Signed-off-by: Albert Mikaelyan <tahvok@gmail.com>
This commit is contained in:
parent
5a2c83d0f9
commit
cee386678c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user