Files
EvoBGP/deploy/prometheus/alerts.yml
T

25 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Правила для Prometheus (профиль compose `reference`). Подключите Alertmanager при необходимости.
groups:
- name: evobgp-controlplane
rules:
- alert: EvoBGPMaterializedPrefixesZero
expr: evobgp_materialized_prefixes_max == 0
for: 2h
labels:
severity: warning
annotations:
summary: "В сторе control-plane нет ни одной ревизии с ненулевым materialized_prefix_count."
description: "Проверьте render/ingest и наличие ревизий."
- alert: EvoBGPBirdEstablishedMissing
expr: |
evobgp_bird_protocols_scrape_success == 1
and evobgp_bgp_peers_configured_total > 0
and evobgp_bird_bgp_sessions_established == 0
for: 10m
labels:
severity: critical
annotations:
summary: "Настроены пиры в сторе, но birdc не видит Established BGP-сессий."
description: "Проверьте bird2, сеть (TCP/179), пароли и что EVOBGP_BIRDC_SOCKET доступен API-контейнеру."