feat: rampart-tui — live metrics terminal dashboard

- ratatui + crossterm; separate bin reading Prometheus exposition format
- counter table (xdp stats, auto-bans, intel), pps/drops history chart,
  status panel with error banner, q/quit r/refresh
- prometheus text parser (labels, escapes, NaN/Inf), Fetcher trait for tests
- 152 tests green
This commit is contained in:
Loki 2026-08-24 12:35:09 +02:00
parent ef75986983
commit d0d2088433
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
11 changed files with 2024 additions and 15 deletions

10
src/tui/mod.rs Normal file
View file

@ -0,0 +1,10 @@
//! TUI-модуль Rampart: live-метрики edge-ноды/manager в терминале (ratatui).
//!
//! Используется бинарём `rampart-tui`; источник данных — Prometheus
//! exposition endpoint (`/metrics`).
pub mod app;
pub mod fetch;
pub mod prometheus;
pub mod state;
pub mod ui;