Rule |
State |
Error |
Last Evaluation |
Evaluation Time |
alert: node_cpu_usage
expr: 100
- (avg by(node_name) (irate(node_cpu_seconds_total{mode="idle"}[1m]) * on(instance)
group_left(node_name) node_meta * 100)) > 50
for: 1m
labels:
severity: warning
annotations:
description: Swarm node {{ $labels.node_name }} CPU usage is at {{ humanize $value}}%.
summary: CPU alert for Swarm node '{{ $labels.node_name }}'
|
ok
|
|
9.089s ago
|
783.2us |
alert: node_memory_usage
expr: sum
by(node_name) (((node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) /
node_memory_MemTotal_bytes) * on(instance) group_left(node_name) node_meta * 100)
> 80
for: 1m
labels:
severity: warning
annotations:
description: Swarm node {{ $labels.node_name }} memory usage is at {{ humanize $value}}%.
summary: Memory alert for Swarm node '{{ $labels.node_name }}'
|
ok
|
|
9.088s ago
|
273.7us |
alert: node_disk_usage
expr: ((node_filesystem_size_bytes{mountpoint="/rootfs"}
- node_filesystem_free_bytes{mountpoint="/rootfs"}) * 100 / node_filesystem_size_bytes{mountpoint="/rootfs"})
* on(instance) group_left(node_name) node_meta > 85
for: 1m
labels:
severity: warning
annotations:
description: Swarm node {{ $labels.node_name }} disk usage is at {{ humanize $value}}%.
summary: Disk alert for Swarm node '{{ $labels.node_name }}'
|
ok
|
|
9.088s ago
|
454.9us |
alert: node_disk_fill_rate_6h
expr: predict_linear(node_filesystem_free_bytes{mountpoint="/rootfs"}[1h],
6 * 3600) * on(instance) group_left(node_name) node_meta < 0
for: 1h
labels:
severity: critical
annotations:
description: Swarm node {{ $labels.node_name }} disk is going to fill up in 6h.
summary: Disk fill alert for Swarm node '{{ $labels.node_name }}'
|
ok
|
|
9.088s ago
|
304.1us |
|
4.251s ago |
16.82ms |