mirror of
https://gitverse.ru/kpa39l/monitoring.git
synced 2026-09-29 18:05:08 +00:00
1.3 KiB
1.3 KiB
Tasks
1. Алерты в alerts.yml
- 1.1 В
/opt/monitoring/alerts.ymlдобавить группуvesti:- VestiWebDown (vesti_web_up == 0, for 2m, critical)
- VestiPublisherDown (vesti_publisher_health == 0, for 2m, critical)
- VestiPublisherContainerDown (vesti_publisher_docker == 0, for 2m, critical)
- VestiTunnelDown (vesti_telegram_tunnel == 0, for 2m, critical)
- VestiDbDown (vesti_db_ok == 0, for 2m, critical)
- VestiDbStale (time() - vesti_db_last_run_ts > 1800, for 5m, warning)
- 1.2 Проверка:
docker exec prometheus promtool check config /etc/prometheus/prometheus.yml→ OK (13 rules) - 1.3 Рестарт:
docker restart prometheus - 1.4 Проверка: группа vesti в /api/v1/rules, 6 правил, state=inactive (норма)
2. Документация
- 2.1 Обновить
/opt/monitoring/README.md(секция VESTI: алерты, метрики) - 2.2 Добавить запись в
/opt/monitoring/EXPERIENCE.md(22-24: textfile, alerting, OpenSpec)
3. Git и OpenSpec
- 3.1
git add(поимённо) + commit + push в gitverse (истина), gitea подтянет mirror - 3.2
openspec validate+openspec archive --yes - 3.3 Обновить STATUS.md/WALKTHROUGH.md