From: Tom Hughes Date: Wed, 30 Nov 2022 10:08:41 +0000 (+0000) Subject: Revert workarounds for intermittent SNMP monitoring X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e190c5092fb440388e6519c1236cfc66a7066353 Revert workarounds for intermittent SNMP monitoring --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 8c1aeee48..c693bb3c0 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.*"}[6m]) > 0 + expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0 for: 5m labels: alertgroup: "{{ $labels.site }}" - alert: juniper power alarm - expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"}[6m]) > 0 + expr: jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"} > 0 for: 5m labels: alertgroup: "{{ $labels.site }}"