prometheus: add bird bgp import alert rules

This commit is contained in:
jeltz 2023-11-02 06:11:32 +01:00
parent 3fa998ae68
commit 4c61d2bc18
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -335,6 +335,17 @@ prometheus__alert_rules_bird:
severity: critical severity: critical
annotations: annotations:
Session: !unsafe "{{ $labels.name }}" Session: !unsafe "{{ $labels.name }}"
- alert: BirdBGPNoImportedPrefixRedundant
expr:
bird_protocol_prefix_import_count{
import_filter!="REJECT",
} * on (instance, name) (
bird:protocol_up:bgp:redundant{state="Established"}
) == 0
for: 0m
labels:
severity: critical
annotations:
- alert: BirdBGPNoExportedPrefixNonRedundant - alert: BirdBGPNoExportedPrefixNonRedundant
expr: expr:
sum by (group) ( sum by (group) (
@ -349,6 +360,20 @@ prometheus__alert_rules_bird:
severity: critical severity: critical
annotations: annotations:
Session: !unsafe "{{ $labels.name }}" Session: !unsafe "{{ $labels.name }}"
- alert: BirdBGPNoImportedPrefixNonRedundant
expr:
sum by (group) (
bird_protocol_prefix_import_count{
import_filter!="REJECT",
} * on (instance, name) group_left (group) (
bird:protocol_up:bgp:non_redundant{state="Established"}
)
) == 0
for: 0m
labels:
severity: critical
annotations:
Session: !unsafe "{{ $labels.name }}"
- alert: BirdOSPFNeighboursChange - alert: BirdOSPFNeighboursChange
expr: expr:
changes(bird_ospf_neighbor_count[5m]) > 0 changes(bird_ospf_neighbor_count[5m]) > 0