23 lines
512 B
YAML
23 lines
512 B
YAML
---
|
|
prometheus__rules_keepalived:
|
|
- alert: KeepalivedVrrpFault
|
|
expr:
|
|
keepalived_vrrp_state{state="fault"} > 0
|
|
for: 0m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
Instance: !unsafe "{{ $labels.instance }}"
|
|
- alert: KeepalivedMasterChange
|
|
expr:
|
|
changes(
|
|
keepalived_vrrp_state{
|
|
keepalived_vvrp_state="master"
|
|
}[1m]
|
|
) > 0
|
|
for: 0m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
Instance: !unsafe "{{ $labels.instance }}"
|
|
...
|