85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
groups:
|
|
- name: default
|
|
rules:
|
|
- alert: oom_kills
|
|
expr: round(increase(node_vmstat_oom_kill[1d])) >= 1
|
|
for: 10m
|
|
labels:
|
|
severity: error
|
|
annotations:
|
|
summary: service gets oom killed
|
|
|
|
- alert: disk_almost_full
|
|
expr: collectd_df_df_complex{type="free",df!="boot"} < 1024^3
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: filesystem has less than 1GB of free space
|
|
|
|
- alert: disk_full
|
|
expr: collectd_df_df_complex{type="free",df!="boot"} < 100 * 1024^2
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: filesystem has less than 100MB of free space
|
|
|
|
- alert: disk_free
|
|
expr: predict_linear(collectd_df_df_complex{type="free",df!="boot"}[1h], 8*3600) < 0
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: filesystem will be full within 8h
|
|
|
|
- alert: load1
|
|
expr: avg_over_time(node_load1[15m]) > 50
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: instance has high load avg
|
|
|
|
- alert: systemd_unit_failed
|
|
expr: round(increase(node_systemd_unit_state{state="failed"}[7d])) >= 1
|
|
for: 10m
|
|
labels:
|
|
severity: error
|
|
annotations:
|
|
summary: service fails
|
|
|
|
- name: network
|
|
rules:
|
|
- alert: load1
|
|
expr: avg_over_time(collectd_load_0[15m]) > 2
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: network device has high load avg
|
|
|
|
- alert: memory_free
|
|
expr: collectd_memory{memory="free"} < 4 * 1024^2
|
|
for: 10m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: memory full
|
|
|
|
- alert: throughput0
|
|
expr: round(increase(collectd_interface_if_octets_0_total[10m]),100000000) > 10*3600*1024^2
|
|
for: 2h
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: sustained throughput
|
|
|
|
- alert: throughput1
|
|
expr: round(increase(collectd_interface_if_octets_1_total[10m]),100000000) > 10*3600*1024^2
|
|
for: 2h
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: sustained throughput
|