mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-15 17:50:48 +00:00
68 lines
2.2 KiB
YAML
68 lines
2.2 KiB
YAML
groups:
|
|
- name: node-exporter.rules
|
|
rules:
|
|
- expr: |
|
|
count without (cpu, mode) (
|
|
node_cpu_seconds_total{job="node",mode="idle"}
|
|
)
|
|
record: instance:node_num_cpu:sum
|
|
- expr: |
|
|
1 - avg without (cpu) (
|
|
sum without (mode) (rate(node_cpu_seconds_total{job="node", mode=~"idle|iowait|steal"}[5m]))
|
|
)
|
|
record: instance:node_cpu_utilisation:rate5m
|
|
- expr: |
|
|
(
|
|
node_load1{job="node"}
|
|
/
|
|
instance:node_num_cpu:sum{job="node"}
|
|
)
|
|
record: instance:node_load1_per_cpu:ratio
|
|
- expr: |
|
|
1 - (
|
|
(
|
|
node_memory_MemAvailable_bytes{job="node"}
|
|
or
|
|
(
|
|
node_memory_Buffers_bytes{job="node"}
|
|
+
|
|
node_memory_Cached_bytes{job="node"}
|
|
+
|
|
node_memory_MemFree_bytes{job="node"}
|
|
+
|
|
node_memory_Slab_bytes{job="node"}
|
|
)
|
|
)
|
|
/
|
|
node_memory_MemTotal_bytes{job="node"}
|
|
)
|
|
record: instance:node_memory_utilisation:ratio
|
|
- expr: |
|
|
rate(node_vmstat_pgmajfault{job="node"}[5m])
|
|
record: instance:node_vmstat_pgmajfault:rate5m
|
|
- expr: |
|
|
rate(node_disk_io_time_seconds_total{job="node", device!=""}[5m])
|
|
record: instance_device:node_disk_io_time_seconds:rate5m
|
|
- expr: |
|
|
rate(node_disk_io_time_weighted_seconds_total{job="node", device!=""}[5m])
|
|
record: instance_device:node_disk_io_time_weighted_seconds:rate5m
|
|
- expr: |
|
|
sum without (device) (
|
|
rate(node_network_receive_bytes_total{job="node", device!="lo"}[5m])
|
|
)
|
|
record: instance:node_network_receive_bytes_excluding_lo:rate5m
|
|
- expr: |
|
|
sum without (device) (
|
|
rate(node_network_transmit_bytes_total{job="node", device!="lo"}[5m])
|
|
)
|
|
record: instance:node_network_transmit_bytes_excluding_lo:rate5m
|
|
- expr: |
|
|
sum without (device) (
|
|
rate(node_network_receive_drop_total{job="node", device!="lo"}[5m])
|
|
)
|
|
record: instance:node_network_receive_drop_excluding_lo:rate5m
|
|
- expr: |
|
|
sum without (device) (
|
|
rate(node_network_transmit_drop_total{job="node", device!="lo"}[5m])
|
|
)
|
|
record: instance:node_network_transmit_drop_excluding_lo:rate5m
|