Interview Prep/Monitoring & Observability/Alerting Strategy, SLOs & Runbooks

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting Strategy, SLOs & Runbooks