From 6d9937bdc1f8914b1ebae95939b72127778f0390 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 23 Feb 2026 11:04:34 +0100 Subject: [PATCH] Add Telemetry Debug Section to Controller Debug Page --- TASK.md | 1106 +++++++++++++++---------------------------------------- 1 file changed, 289 insertions(+), 817 deletions(-) diff --git a/TASK.md b/TASK.md index e23de9b..e48d817 100644 --- a/TASK.md +++ b/TASK.md @@ -1,866 +1,338 @@ -# TASK: App Telemetry & Analytics +# TASK: Add Telemetry Debug Section to Controller Debug Page -**Controller:** v0.27.3 → v0.28.0 -**Hub:** v0.3.8 → v0.4.0 +**Scope:** Controller only — add a "Telemetria teszt" section to the existing Debug page ## Overview -Add per-app (per-stack) memory/CPU telemetry and container log error scanning to the controller's report push cycle, then build fleet-wide analytics dashboard pages in the hub. +The App Telemetry feature (metrics collection, log scanning, hub reporting, hub dashboard) is fully implemented and deployed. The remaining task is to add a debug section that lets the operator run telemetry collection on-demand and see the results — useful for verifying container→stack mapping, checking metrics DB values, and testing log scanner pattern matching without waiting for the 15-minute report cycle. --- -## Spec Issues Found (corrections already applied in this plan) +## What to Implement -1. **Wrong column name in metrics DB**: Spec uses `memory_bytes` — actual column is `mem_usage_mb` (already in MB). No byte→MB conversion needed. -2. **`ts` column is INTEGER (Unix timestamp)**, not datetime — WHERE clauses must use `unix()`. -3. **`metricsStore` already passed to `BuildReport()`** — no main.go wiring change needed for that dependency. -4. **Chart.js is NOT in the hub** — needs to be added (copy from controller's `internal/web/static/chart.min.js`). -5. **Hub nav is header-based**, not sidebar — add "Alkalmazások" to the header `