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`.
step-ssh
Dustin 2023-05-03 11:06:34 -05:00
parent 5ed3ee525e
commit f6f286ac24
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ vmalert_rules:
( (
collectd_md_md_disks{instance="burp1.pyrocufflink.blue", type="active"} 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] or last_over_time(collectd_md_md_disks{instance="burp1.pyrocufflink.blue", type="active"})[1d]
)[1d] )[30d]
) > 86400 * 30 ) > 86400 * 30
annotations: annotations:
summary: The disks in the BURP array need swapped summary: The disks in the BURP array need swapped