Add simple disk pressure alert
All checks were successful
/ dev-shell (push) Successful in 32s
/ check (push) Successful in 1m14s
/ terraform-providers (push) Successful in 1m2s
/ systems (push) Successful in 3m44s
/ rust-packages (push) Successful in 38s

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-22 15:35:44 +02:00
parent 8e21df1764
commit 46375018e0
Signed by: khs
GPG key ID: C7D890804F01E9F0
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
- name: Instance
rules:
- alert: DiskPressure
expr: >
(
node_filesystem_avail_bytes{fstype!="ramfs",job="integrations/node_exporter"} /
node_filesystem_size_bytes{fstype!="ramfs",job="integrations/node_exporter"}
) < 0.2
and
(
node_filesystem_avail_bytes{fstype!="ramfs",job="integrations/node_exporter"} /
1024 / 1024 / 1024
) < 20
for: 10m
labels:
severity: warning
annotations:
summary: "Disk pressure on {{ $labels.mountpoint }} on {{ $labels.instance }}"

View file

@ -122,6 +122,7 @@ in
'' ''
groups: groups:
${builtins.readFile ./alerts/http.yaml} ${builtins.readFile ./alerts/http.yaml}
${builtins.readFile ./alerts/instance.yaml}
${builtins.readFile ./alerts/postfix.yaml} ${builtins.readFile ./alerts/postfix.yaml}
${builtins.readFile ./alerts/postgres.yaml} ${builtins.readFile ./alerts/postgres.yaml}
${builtins.readFile ./alerts/systemd.yaml} ${builtins.readFile ./alerts/systemd.yaml}