How do you alert on saturation without paging on harmless spikes?
IntermediateProductionAlerting Strategy, SLOs & Runbooks
Answer
Alert on time-to-exhaustion, not the instantaneous level. A disk at 85% that grows 1% a month is fine; a disk at 60% filling in 2 hours is an emergency.
predict_linear(node_filesystem_avail_bytes{mountpoint="/var/lib/postgresql"}[6h], 4*3600) < 0
and
node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.3
The second clause stops false positives from short write bursts. Same pattern for connection pools and queue capacity.
More on Alerting Strategy, SLOs & Runbooks
What is the single most important rule for deciding whether an alert should page a human?BeginnerWhat severity levels do you define, and where does each one go?BeginnerWhy do mature teams alert on SLO burn rate instead of raw error rate thresholds?IntermediateIn a multi-window burn-rate alert, what is the short window for?AdvancedHow do you generate SLO alert rules without hand-writing dozens of burn-rate expressions?IntermediateHow do you pick an SLO target for a service that has never had one?Beginner