feat(openspec): vesti-alerts — 6 алертов на компоненты VESTI (web/publisher/tunnel/db/stale); OpenSpec change

This commit is contained in:
kpa39l
2026-09-13 15:34:47 +00:00
parent df1ebed76d
commit 62a4f1a0db
7 changed files with 342 additions and 1 deletions
@@ -0,0 +1,22 @@
# Tasks
## 1. Алерты в alerts.yml
- [x] 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)
- [x] 1.2 Проверка: `docker exec prometheus promtool check config /etc/prometheus/prometheus.yml` → OK (13 rules)
- [x] 1.3 Рестарт: `docker restart prometheus`
- [x] 1.4 Проверка: группа vesti в /api/v1/rules, 6 правил, state=inactive (норма)
## 2. Документация
- [x] 2.1 Обновить `/opt/monitoring/README.md` (секция VESTI: алерты, метрики)
- [x] 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