X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/623831e199989cd380850026fef07c236a31776b..88f820a038a839a687db7374235eca3003790296:/cookbooks/prometheus/templates/default/alert_rules.yml.erb diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 8956104a8..396de8de4 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -3,6 +3,13 @@ groups: - name: amsterdam rules: + - alert: uplink + expr: ifOperStatus{site="amsterdam",ifName=~"ge-[01]/2/2"} != 1 + for: 6m + labels: + alertgroup: "amsterdam" + annotations: + status: "{{ $value }}" - alert: pdu current draw expr: rPDU2PhaseStatusCurrent{site="amsterdam",rPDU2PhaseStatusIndex="1"} / 10 > 28 for: 6m @@ -109,6 +116,13 @@ groups: failure_rate: "{{ $value }} jobs/s" - name: dublin rules: + - alert: uplink + expr: ifOperStatus{site="dublin",ifName=~"ge-[01]/2/2"} != 1 + for: 6m + labels: + alertgroup: "dublin" + annotations: + status: "{{ $value }}" - alert: pdu current draw expr: rPDU2PhaseStatusCurrent{site="dublin",rPDU2PhaseStatusIndex="1"} / 10 > 28 for: 6m