From: Tom Hughes Date: Wed, 26 Oct 2022 22:00:07 +0000 (+0100) Subject: Extend lookback for juniper alerts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/30613a2773a35a9e206527caa0c9f524f2c357e9 Extend lookback for juniper alerts --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index b49a274af..591f86327 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -247,12 +247,12 @@ groups: - name: juniper rules: - alert: juniper fan alarm - expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!="running"}[5m]) > 0 + expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!="running"}[6m]) > 0 for: 5m labels: alertgroup: "{{ $labels.site }}" - alert: juniper power alarm - expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!="running"}[5m]) > 0 + expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!="running"}[6m]) > 0 for: 5m labels: alertgroup: "{{ $labels.site }}"