mirror of
https://gitverse.ru/kpa39l/monitoring.git
synced 2026-09-29 09:55:09 +00:00
feat: VESTI dashboard — textfile-коллектор vesti_* метрик + дашборд (доступность компонентов)
This commit is contained in:
@@ -1,15 +1,36 @@
|
||||
# Мониторинг кластера — Статус
|
||||
|
||||
Обновлено: 2026-09-08 (сессия @session:default/20260908_180858_730d1b)
|
||||
Обновлено: 2026-09-13 (добавлен дашборд VESTI)
|
||||
|
||||
## Текущее состояние
|
||||
Стек мониторинга на bigbox (/opt/monitoring): Prometheus 2.53 + Grafana 11.1 +
|
||||
Loki + promtail. Собирает: Garage-кластер (vps01/bigbox/vps02 :3903), системы
|
||||
всех 4 нод (node-exporter :9100 по WireGuard), tproxy (vps03, loopback-туннель).
|
||||
всех 4 нод (node-exporter :9100 по WireGuard), tproxy (vps03, loopback-туннель),
|
||||
**VESTI (компоненты/доступность)**.
|
||||
Дашборды: **4 per-node** (Node vps01/vps02/vps03/bigbox) + Garage Cluster +
|
||||
Vinograd WAN + tproxy-панели. vps03 подключён к WG (10.8.0.3), порты наружу
|
||||
Vinograd WAN + tproxy-панели + **VESTI**. vps03 подключён к WG (10.8.0.3), порты наружу
|
||||
не светятся. Все 4 node-таргета up. Всё в git (gitverse + gitea mirror).
|
||||
|
||||
## VESTI (добавлено 2026-09-13)
|
||||
- Метрики: textfile-коллектор node-exporter на bigbox, скрипт
|
||||
`/opt/vesti/scripts/vesti-metrics.sh` (запуск: `/etc/cron.d/vesti-metrics`, каждую минуту, root).
|
||||
Пишет `/var/lib/node_exporter/textfile_collector/vesti.prom`.
|
||||
- Метрики `vesti_*` (label `component="vesti"`), собираются job'ом `node` (10.8.0.2:9100):
|
||||
`vesti_web_up`, `vesti_publisher_health`, `vesti_publisher_bot`, `vesti_publisher_proxy`,
|
||||
`vesti_publisher_channels`, `vesti_telegram_tunnel`, `vesti_publisher_docker`,
|
||||
`vesti_web_systemd`, `vesti_db_ok`, `vesti_db_posts_total`, `vesti_db_new_total`,
|
||||
`vesti_db_published_total`, `vesti_db_last_run_ts`.
|
||||
- node-exporter на bigbox: `ARGS="--web.listen-address=10.8.0.2:9100 --collector.textfile.directory=/var/lib/node_exporter/textfile_collector"`
|
||||
(в /etc/default/prometheus-node-exporter).
|
||||
- Дашборд: `grafana/dashboards/vesti/vesti.json` (uid `vesti`, папка **vesti**), 18 панелей:
|
||||
stat-панели доступности (web/publisher/Docker/tunnel/DB/systemd) + детали publisher
|
||||
(bot/proxy/channels) + БД (posts/new/published + время с последнего рan) + история доступности.
|
||||
- Провайдер `vesti-dashboards` добавлен в `grafana/provisioning/dashboards/dashboards.yml`
|
||||
(path: /var/lib/grafana/dashboards/vesti).
|
||||
- ⚠️ Известное: systemd1 на bigbox снова завис (systemctl висит) — таймер vesti-metrics.timer
|
||||
не заведён, вместо него cron.d (работает). При следующем ребуте systemd1 оживёт;
|
||||
тогда можно перевести на systemd-timer (unit-файлы уже написаны: /etc/systemd/system/vesti-metrics.{service,timer}).
|
||||
|
||||
## Сделано (за сессию 2026-09-08)
|
||||
- vps03 подключён к WireGuard: 10.8.0.3/24, hub vps01 (5.129.217.146:51820),
|
||||
пиры добавлены на vps01/bigbox/vps02 (AllowedIPs пира vps01 расширен до
|
||||
|
||||
Reference in New Issue
Block a user