Skip to content
Snippets Groups Projects
Commit 21612464 authored by Alex Hanselka's avatar Alex Hanselka
Browse files

Merge branch 'bjk/longer_prediction_cycle' into 'master'

Adjust NodeFilesystemFullSoon alert

See merge request !3
parents 1846e880 fba12d8d
No related branches found
No related tags found
1 merge request!3Adjust NodeFilesystemFullSoon alert
Pipeline #
Loading
Loading
@@ -11,16 +11,16 @@ ALERT NodeFilesystemFullSoon
runbook = "troubleshooting/filesystem_alerts.md",
}
 
# Use 1 hour of history to predict 4 hours into the future.
# Use 12 hours of history to predict 48 hours into the future.
ALERT NodeFilesystemFullSoon
IF predict_linear(node_filesystem_avail{fstype=~"ext.|xfs",mountpoint!~"/mnt/(backup-block-for|remote).*"}[1h], 4*60*60) < 0
FOR 10m
IF predict_linear(node_filesystem_avail{fstype=~"ext.|xfs",mountpoint!~"/mnt/(backup-block-for|remote).*"}[12h], 48*60*60) < 0
FOR 4h
LABELS {
severity = "crit",
}
ANNOTATIONS {
summary = "Filesystem is filling up",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is filling up and will be full in the next 4 hours",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is filling up and will be full in the next 48 hours",
runbook = "troubleshooting/filesystem_alerts.md",
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment