36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
|
#
|
||
|
# Alert Rules
|
||
|
#
|
||
|
groups:
|
||
|
- name: GeneralNodeExporterRules
|
||
|
rules:
|
||
|
# TooMuch Data IN
|
||
|
- alert: TooMuchNetworkThroughputIn
|
||
|
expr: sum by (instance) (rate(node_network_receive_bytes_total[2m])) / 1024 / 1024 > 100
|
||
|
for: 5m
|
||
|
labels:
|
||
|
severity: warning
|
||
|
annotations:
|
||
|
summary: Host unusual network throughput in (instance {{ $labels.instance }})
|
||
|
description: "Host network interfaces are probably receiving too much data (> 100 MB/s)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||
|
|
||
|
- alert: AlertInodes
|
||
|
expr: node_filesystem_files_free{mountpoint ="/"} / node_filesystem_files{mountpoint="/"} * 100 < 10 and ON (instance, device, mountpoint) node_filesystem_readonly{mountpoint="/"} == 0
|
||
|
for: 2m
|
||
|
labels:
|
||
|
severity: warning
|
||
|
annotations:
|
||
|
summary: Host out of inodes (instance {{ $labels.instance }})
|
||
|
description: "Disk is almost running out of available inodes (< 10% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||
|
|
||
|
- alert: HostSwapIsFillingUp
|
||
|
expr: (1 - (node_memory_SwapFree / node_memory_SwapTotal)) * 100 > 80
|
||
|
for: 2m
|
||
|
labels:
|
||
|
severity: warning
|
||
|
annotations:
|
||
|
summary: Host swap is filling up (instance {{ $labels.instance }})
|
||
|
description: "Swap is filling up (>80%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||
|
|
||
|
|