mirror of
https://github.com/prometheus/node_exporter
synced 2025-01-12 08:29:30 +00:00
Fix sample rules for migration (#1022)
- add conversion from _ms to _seconds on disk metrics - add missing node_textfile_mtime section - add groups: header to pass promtool check rules Signed-off-by: Rene Treffer <rene.treffer@soundcloud.com>
This commit is contained in:
parent
14a4f0028e
commit
80a5712b97
@ -1,3 +1,4 @@
|
||||
groups:
|
||||
- name: node_exporter-16-bcache
|
||||
rules:
|
||||
- expr: node_bcache_cache_read_races
|
||||
@ -26,7 +27,7 @@
|
||||
record: node_disk_bytes_read
|
||||
- expr: node_disk_written_bytes_total
|
||||
record: node_disk_bytes_written
|
||||
- expr: node_disk_io_time_seconds_total
|
||||
- expr: node_disk_io_time_seconds_total * 1000
|
||||
record: node_disk_io_time_ms
|
||||
- expr: node_disk_io_time_weighted_seconds_total
|
||||
record: node_disk_io_time_weighted
|
||||
@ -34,13 +35,13 @@
|
||||
record: node_disk_reads_completed
|
||||
- expr: node_disk_reads_merged_total
|
||||
record: node_disk_reads_merged
|
||||
- expr: node_disk_read_time_seconds_total
|
||||
- expr: node_disk_read_time_seconds_total * 1000
|
||||
record: node_disk_read_time_ms
|
||||
- expr: node_disk_writes_completed_total
|
||||
record: node_disk_writes_completed
|
||||
- expr: node_disk_writes_merged_total
|
||||
record: node_disk_writes_merged
|
||||
- expr: node_disk_write_time_seconds_total
|
||||
- expr: node_disk_write_time_seconds_total * 1000
|
||||
record: node_disk_write_time_ms
|
||||
- name: node_exporter-16-filesystem
|
||||
rules:
|
||||
@ -188,3 +189,7 @@
|
||||
record: node_nfs_rpc_operations
|
||||
- expr: node_nfs_rpc_retransmissions_total
|
||||
record: node_nfs_rpc_retransmissions
|
||||
- name: node_exporter-16-textfile
|
||||
rules:
|
||||
- expr: node_textfile_mtime_seconds
|
||||
record: node_textfile_mtime
|
||||
|
@ -28,7 +28,7 @@ groups:
|
||||
- record: node_disk_written_bytes_total
|
||||
expr: node_disk_bytes_written
|
||||
- record: node_disk_io_time_seconds_total
|
||||
expr: node_disk_io_time_ms
|
||||
expr: node_disk_io_time_ms / 1000
|
||||
- record: node_disk_io_time_weighted_seconds_total
|
||||
expr: node_disk_io_time_weighted
|
||||
- record: node_disk_reads_completed_total
|
||||
@ -36,13 +36,13 @@ groups:
|
||||
- record: node_disk_reads_merged_total
|
||||
expr: node_disk_reads_merged
|
||||
- record: node_disk_read_time_seconds_total
|
||||
expr: node_disk_read_time_ms
|
||||
expr: node_disk_read_time_ms / 1000
|
||||
- record: node_disk_writes_completed_total
|
||||
expr: node_disk_writes_completed
|
||||
- record: node_disk_writes_merged_total
|
||||
expr: node_disk_writes_merged
|
||||
- record: node_disk_write_time_seconds_total
|
||||
expr: node_disk_write_time_ms
|
||||
expr: node_disk_write_time_ms / 1000
|
||||
- name: node_exporter-16-filesystem
|
||||
rules:
|
||||
- record: node_filesystem_free_bytes
|
||||
@ -189,3 +189,7 @@ groups:
|
||||
expr: node_nfs_rpc_operations
|
||||
- record: node_nfs_rpc_retransmissions_total
|
||||
expr: node_nfs_rpc_retransmissions
|
||||
- name: node_exporter-16-textfile
|
||||
rules:
|
||||
- record: node_textfile_mtime_seconds
|
||||
expr: node_textfile_mtime
|
||||
|
Loading…
Reference in New Issue
Block a user