From a482ef9ef9aac7671960a25c1d54d4a59ba2f3de Mon Sep 17 00:00:00 2001 From: kholmes Date: Fri, 30 Oct 2026 23:24:14 +0000 Subject: [PATCH] Merged rules --- monitoring/grafana/alerting/alert-rules.yaml | 75 ++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/monitoring/grafana/alerting/alert-rules.yaml b/monitoring/grafana/alerting/alert-rules.yaml index b9864d5..7caccfa 100644 --- a/monitoring/grafana/alerting/alert-rules.yaml +++ b/monitoring/grafana/alerting/alert-rules.yaml @@ -62,3 +62,78 @@ groups: isPaused: false notification_settings: receiver: team-alerts + - orgId: 1 + name: infrastructure-alerts + folder: SSW 590 + interval: 30s + rules: + - uid: bg2tu8l6pb20wc + title: HostDiskLow + condition: C + data: + - refId: A + relativeTimeRange: + from: 600 + to: 0 + datasourceUid: prometheus + model: + editorMode: code + expr: |- + 100 * + node_filesystem_avail_bytes{ + mountpoint="/", + fstype!="rootfs", + device="/dev/vda1" + } + / + node_filesystem_size_bytes{ + mountpoint="/", + fstype!="rootfs", + device="/dev/vda1" + } + instant: true + intervalMs: 1000 + legendFormat: __auto + maxDataPoints: 43200 + range: false + refId: A + - refId: C + queryType: expression + datasourceUid: __expr__ + model: + conditions: + - evaluator: + params: + - 15 + type: lt + operator: + type: and + query: + params: + - C + reducer: + params: [] + type: last + type: query + datasource: + type: __expr__ + uid: __expr__ + expression: A + intervalMs: 1000 + maxDataPoints: 43200 + refId: C + type: threshold + noDataState: Alerting + execErrState: Alerting + for: 5m + annotations: + description: Investigate root filesystem capacity on the monitored Droplet. Check disk usage and Docker logs before taking action. Do not delete Docker volumes or container data as an emergency response. + runbook_url: https://git.ssw590-08.me/SSW-590-08/Scrap-Web/src/branch/main/monitoring/RUNBOOK.md + summary: Root filesystem free space below 15% on {{ $labels.instance }} + labels: + owner: kholmes7 + severity: warning + team: ssw590 + isPaused: false + notification_settings: + receiver: team-alerts \ No newline at end of file