Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,26 @@ These are examples of rules you can use with Prometheus to trigger the firing of

---

**Disk Will Fill in 2 weeks -- Less jumpy version**
```yaml
- alert: PreditciveHostDiskSpace
expr: predict_linear(node_filesystem_free{fstype!="tmpfs"}[1w], 3600 * 24 * 2w) < 0
for: 1d
labels:
severity: warning
annotations:
description: Device {{$labels.device}} mounted at {{ $labels.mountpoint }} on
node {{$labels.instance}} likely to fill within the next 4 hours.
summary: Predictive Disk Space Utilisation Alert
```
*Summary:* This is meant to catch a gradually filling disk,
while not alerting on backups, log rotation, etc.
It looks at all filesystems, not just root, but skips `tmpfs`.

*Inspiration:* [Circonus Blog](https://www.circonus.com/2014/11/alerting-on-disk-space-the-right-way/)

---

**Alert on High Memory Load**
```yaml
- expr: (sum(node_memory_MemTotal) - sum(node_memory_MemFree + node_memory_Buffers + node_memory_Cached) ) / sum(node_memory_MemTotal) * 100 > 85
Expand Down