Skip to content

Commit

Permalink
Add alerts for equinix uplink interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Dec 18, 2024
1 parent 50aea11 commit 6ca4c5b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions cookbooks/prometheus/templates/default/alert_rules.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6ca4c5b

Please sign in to comment.