From: Tom Hughes Date: Wed, 18 Dec 2024 09:10:26 +0000 (+0000) Subject: Add alerts for equinix uplink interfaces X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/6ca4c5b1adbeff9556a2f63e7716d21d02495901?hp=50aea11082eaa90bd37593b9c987d38a082f4e1b Add alerts for equinix uplink interfaces --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 6751fe744..305afbd90 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -3,13 +3,20 @@ groups: - name: amsterdam rules: - - alert: uplink + - alert: he uplink expr: junos_interface_up{site="amsterdam",name=~"ge-[01]/2/2"} != 1 for: 6m labels: alertgroup: "amsterdam" annotations: status: "{{ $value }}" + - alert: equinix uplink + expr: junos_interface_up{site="amsterdam",name=~"xe-[01]/2/0"} != 1 + for: 6m + labels: + alertgroup: "amsterdam" + annotations: + status: "{{ $value }}" - alert: pdu current draw expr: rPDU2PhaseStatusCurrent{site="amsterdam",rPDU2PhaseStatusIndex="1"} / 10 > 28 for: 6m @@ -130,13 +137,20 @@ groups: failure_rate: "{{ $value }} jobs/s" - name: dublin rules: - - alert: uplink + - alert: he uplink expr: junos_interface_up{site="dublin",name=~"ge-[01]/2/2"} != 1 for: 6m labels: alertgroup: "dublin" annotations: status: "{{ $value }}" + - alert: equinix uplink + expr: junos_interface_up{site="dublin",name=~"xe-[01]/2/0"} != 1 + for: 6m + labels: + alertgroup: "dublin" + annotations: + status: "{{ $value }}" - alert: pdu current draw expr: rPDU2PhaseStatusCurrent{site="dublin",rPDU2PhaseStatusIndex="1"} / 10 > 28 for: 6m