From: Tom Hughes Date: Fri, 4 Aug 2023 21:57:56 +0000 (+0100) Subject: Add alerts for juniper alarms X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/755f734fc7531c6f00fb5bd5067491c896bf97f4 Add alerts for juniper alarms --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 2678f5e1a..d717e4f0a 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -272,6 +272,20 @@ groups: alertgroup: "{{ $labels.instance }}" - name: juniper rules: + - alert: juniper red alarms + expr: juniper_alarms_red_count > 0 + for: 5m + labels: + alertgroup: "{{ $labels.site }}" + annotations: + alarm_count: "{{ $value }} alarms" + - alert: juniper yellow alarms + expr: juniper_alarms_yellow_count > 0 + for: 5m + labels: + alertgroup: "{{ $labels.site }}" + annotations: + alarm_count: "{{ $value }} alarms" - alert: juniper cpu alarm expr: junos_route_engine_load_average_five / 2 > 0.5 for: 5m