`predict_linear` disk-full alert fires constantly on log volumes
IntermediateTroubleshootingPromQL and recording rules
Answer
Likely causes → Logrotate makes usage sawtooth; a short window extrapolates each growth spike as if it continues.
Diagnose → Plot node_filesystem_avail_bytes for the mount over 24h.
Fix → Use a longer window and a minimum free threshold together:
predict_linear(node_filesystem_avail_bytes{mountpoint="/var/log"}[6h], 4*3600) < 0
and node_filesystem_avail_bytes{mountpoint="/var/log"} / node_filesystem_size_bytes < 0.2
Prevent → Add for: 30m.
More on PromQL and recording rules
A PromQL query in the UI returns `Empty query result` for a metric you can see on `/metrics`Beginner`rate(http_requests_total[1m])` returns nothing but `http_requests_total` has dataBeginner`rate()` applied to a gauge shows huge spikesBeginnerBinary operation fails: `many-to-many matching not allowed: matching labels must be unique on one side`Advanced`found duplicate series for the match group {pod="api-1"} on the right hand-side of the operation`IntermediateError ratio query returns no data during quiet hoursIntermediate