From a2bcd5ccbb6f65c8571ad0a868f1759aabe591a1 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 14 May 2023 11:36:23 -0500 Subject: [PATCH] alerts: Adjust BURP RAID disk swap alert Using a 30-day window for the `tlast_change_over_time` function effectively "caps out" the value at 30 days. Thus, the alert reminding me to swap the BURP backup volume will never fire, since the value will never be greater than the 30-day threshold. Using a wider window resolves that issue (though the query will still produce inaccurate results beyond the window). --- group_vars/metricspi/alerts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_vars/metricspi/alerts.yml b/group_vars/metricspi/alerts.yml index 3fc2270..a1fc6bf 100644 --- a/group_vars/metricspi/alerts.yml +++ b/group_vars/metricspi/alerts.yml @@ -55,7 +55,7 @@ vmalert_rules: ( collectd_md_md_disks{instance="burp1.pyrocufflink.blue", type="active"} or last_over_time(collectd_md_md_disks{instance="burp1.pyrocufflink.blue", type="active"})[1d] - )[30d] + )[90d] ) > 86400 * 30 annotations: summary: The disks in the BURP array need swapped