prometheus: add bird bgp import alert rules
This commit is contained in:
parent
3fa998ae68
commit
4c61d2bc18
1 changed files with 25 additions and 0 deletions
|
@ -335,6 +335,17 @@ prometheus__alert_rules_bird:
|
|||
severity: critical
|
||||
annotations:
|
||||
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
|
||||
expr:
|
||||
sum by (group) (
|
||||
|
@ -349,6 +360,20 @@ prometheus__alert_rules_bird:
|
|||
severity: critical
|
||||
annotations:
|
||||
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
|
||||
expr:
|
||||
changes(bird_ospf_neighbor_count[5m]) > 0
|
||||
|
|
Loading…
Reference in a new issue