From f6f286ac244cbe765518d485ff2441cdcaf1ce3b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 3 May 2023 11:06:34 -0500 Subject: [PATCH] alerts: Correct BURP volume swap alert The `tlast_change_over_time` function needs an interval wide enough to consider the range of time we are intrested in. In this case, we want to see if the BURP volume has been swapped in the last thirty days, so the interval needs to be `30d`. --- 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 7c34c5c..3fc2270 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] - )[1d] + )[30d] ) > 86400 * 30 annotations: summary: The disks in the BURP array need swapped