mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 22:19:44 -08:00
Add label mangling.
Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
dc1972e9e3
commit
c5a74ce1a1
|
@ -20,7 +20,7 @@ groups:
|
|||
- name: node_exporter-16-cpu
|
||||
rules:
|
||||
- record: node_cpu_seconds_total
|
||||
expr: node_cpu
|
||||
expr: label_replace(node_cpu, "cpu", "$1", "cpu", "cpu(.+)")
|
||||
- name: node_exporter-16-diskstats
|
||||
rules:
|
||||
- record: node_disk_read_bytes_total
|
||||
|
@ -172,7 +172,7 @@ groups:
|
|||
- record: node_nfs_packets_total
|
||||
expr: node_nfs_net_reads
|
||||
- record: node_nfs_requests_total
|
||||
expr: node_nfs_procedures
|
||||
expr: label_replace(label_replace(node_nfs_procedures, "proto", "$1", "version", "(.+)"), "method", "$1", "procedure", "(.+)")
|
||||
- record: node_nfs_rpc_authentication_refreshes_total
|
||||
expr: node_nfs_rpc_authentication_refreshes
|
||||
- record: node_nfs_rpcs_total
|
||||
|
|
Loading…
Reference in a new issue