An Early-Warning Disk Alert That Can't Double-Fire
The log collector's small disk went from comfortable to 96% in hours, and the existing alert only fired with about 600 MB left. A second rule watches a 10-15% free band so the two alerts never overlap, and we proved its logic by shifting the band against live data.

Key Architectural Takeaways
- Alert on a band, 10-15% free, so an early warning and a critical alert never fire together.
- Prove a rule that currently matches nothing by shifting the band until it matches something real.
- Cap runaway telemetry stores too: the monitoring agent's own database was part of the disk pressure.
The challenge
The central log collector has a small 13 GB eMMC disk. On 2026-11-16 a backlog of logs from a newly reachable network segment flushed in, and the disk went from comfortable to 96% used within hours. The existing infra-disk-almost-full alert (under 10% free) did fire, but only when about 600 MB remained, which is too little time to act.
The design: a band, not a threshold
We added a Grafana rule, infra-disk-early-warning, that fires when a filesystem has 10 to 15% free for 15 minutes. A band, not a bare "under 15%", means the early warning stops as the critical rule starts, so a single filesystem never triggers both. It uses the same pipeline and labels (n8n to Discord), and the same noDataState: OK as its sibling rule, so missing data does not page anyone.
Proving a rule that matches nothing
When we ran the expression against live Prometheus, it returned an empty set: nothing was in the 10 to 15% band at that moment, and the two hosts already under 10% were covered by the existing rule. An empty result is also what a broken expression returns. So we shifted the band to 15 to 20% and re-ran it: it returned one real filesystem at 16.3%. The logic was proven, and we reverted the band. The template rendered to valid YAML with 14 rules and unique IDs.
The other half: a monitoring agent filling its own disk
On the same host, Netdata's database engine was part of the pressure. We capped its tier-0 and tier-1 stores at 512 MiB each, so monitoring cannot grow without limit on the box that is already the tightest.
What was not done
The alert rule ships with the monitoring role and was not provisioned live when the change was written. We said so in the pull request.
Takeaway
A threshold alert tells you the problem has started. A band tells you it is coming. And a rule you cannot trigger today still needs a way to prove it would fire.
Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.