feat(dashboard): windowed stats per range + clear-logs button

- Stats snapshot now computes the KPI totals AND the breakdown from the
  in-window per-minute buckets (previously they used all-time accumulators, so
  switching 1h/24h/7d changed only the chart, not the numbers). Buckets now
  carry failovers + per-group breakdown; Prometheus keeps all-time counters.
- New DELETE /admin/api/stats clears all in-memory stats and truncates the
  JSONL log; the dashboard gets a "Clear logs" button (with confirm).
This commit is contained in:
infosave2007
2026-07-09 17:07:05 +03:00
parent 0d1283c3fa
commit b55e72789f
8 changed files with 129 additions and 49 deletions
Generated
+1 -1
View File
@@ -285,7 +285,7 @@ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
[[package]]
name = "cortiq-gateway"
version = "0.2.13"
version = "0.2.14"
dependencies = [
"anyhow",
"arc-swap",