feat: enhance evobgp with new command-line tools for bundle management, including pull, verify, and apply functionalities. Update go.mod to include necessary dependencies and complete todos in architecture plan for improved observability and deployment practices.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Правила для 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-контейнеру."
|
||||
@@ -0,0 +1,12 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
rule_files:
|
||||
- /etc/prometheus/alerts.yml
|
||||
|
||||
scrape_configs:
|
||||
- job_name: evobgp-api
|
||||
metrics_path: /metrics
|
||||
static_configs:
|
||||
- targets: ["evobgp-api:8080"]
|
||||
Reference in New Issue
Block a user