Interview Prep/Monitoring & Observability/Rapid-Fire PromQL & LogQL

Which filesystems will fill up within 4 hours?

IntermediateProductionRapid-Fire PromQL & LogQL
Answer
predict_linear(node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"}[6h], 4 * 3600) < 0
and node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes < 0.2

The second condition stops noise from small, nearly empty disks with a steep but harmless trend.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Rapid-Fire PromQL & LogQL