Browse Source

Add label mangling.

Signed-off-by: Ben Kochie <superq@gmail.com>
pull/942/head
Ben Kochie 7 years ago
parent
commit
c5a74ce1a1
Failed to extract signature
  1. 4
      docs/example-16-compatibility-rules.yml

4
docs/example-16-compatibility-rules.yml

@ -20,7 +20,7 @@ groups:
- name: node_exporter-16-cpu - name: node_exporter-16-cpu
rules: rules:
- record: node_cpu_seconds_total - record: node_cpu_seconds_total
expr: node_cpu expr: label_replace(node_cpu, "cpu", "$1", "cpu", "cpu(.+)")
- name: node_exporter-16-diskstats - name: node_exporter-16-diskstats
rules: rules:
- record: node_disk_read_bytes_total - record: node_disk_read_bytes_total
@ -172,7 +172,7 @@ groups:
- record: node_nfs_packets_total - record: node_nfs_packets_total
expr: node_nfs_net_reads expr: node_nfs_net_reads
- record: node_nfs_requests_total - 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 - record: node_nfs_rpc_authentication_refreshes_total
expr: node_nfs_rpc_authentication_refreshes expr: node_nfs_rpc_authentication_refreshes
- record: node_nfs_rpcs_total - record: node_nfs_rpcs_total

Loading…
Cancel
Save