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).
This commit is contained in:
2023-05-14 11:36:23 -05:00
parent ad9fb6798e
commit a2bcd5ccbb

View File

@@ -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