[PR #22] [CLOSED] tools: add real-time web dashboard for hardware and engine monitoring #2420

Closed
opened 2026-11-04 01:59:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/22
Author: @code-martin
Created: 9/27/2026
Status: ❌ Closed

Base: main ← Head: feature/live-dashboard


📝 Commits (1)

  • a3b200c feat(tools): add real-time web dashboard for hardware and engine monitoring

📊 Changes

2 files changed (+795 additions, -0 deletions)

View changed files

📝 .gitignore (+12 -0)
➕ tools/dashboard_server.py (+783 -0)

📄 Description

What

Adds a self-contained real-time monitoring web dashboard (tools/dashboard_server.py) for Strata:

  • Zero external dependencies: implemented purely with Python standard library (http.server, urllib, json, subprocess, ctypes).
  • Single-page responsive dark UI with live SVG telemetry gauges, mini trend charts, and real-time generation metrics.
  • Runs alongside the Strata engine server: python tools/dashboard_server.py --port 8081 --server http://127.0.0.1:8080.

Preview

Strata Live Dashboard Preview

Features

  • Strata Engine Tracking:
    • Live state, prompt/generation progress bar, current token throughput (tok/s), context window utilization, and active KV cache mode.
    • Completed request history log with prefill/gen timing, token counts, and effective speeds.
  • Hardware Telemetry (Windows & Linux):
    • GPU: Util %, VRAM usage/capacity, temperature, board power draw, active PCIe generation and lane width (e.g. PCIe 4.0 x16 via NVML), and expert cache slots in VRAM.
    • CPU & RAM: Core/thread count, CPU utilization, system RAM used/total.
    • NVMe Activity: Per-disk read/write MB/s and load percentage (queries PDH on Windows, /proc/diskstats on Linux) to monitor DirectStorage/SSD streaming during MoE expert offloading.
  • Resilient: Gracefully handles engine reconnects, idle periods, and background streaming.

Verification

  • Tested on Windows 11 with NVIDIA RTX 3080 + AMD Ryzen 9 5950X + Dual NVMe SSDs while running Strata with Qwen3.8-Flash-Next (Swift 1.5).
  • Verified live polling updates, responsive gauge animations, and request history tracking.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/22 **Author:** [@code-martin](https://github.com/code-martin) **Created:** 9/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/live-dashboard` --- ### 📝 Commits (1) - [`a3b200c`](https://github.com/Niko1221/Strata/commit/a3b200cf7ea9606e70d22a24df13dbbf9c5748c5) feat(tools): add real-time web dashboard for hardware and engine monitoring ### 📊 Changes **2 files changed** (+795 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+12 -0) ➕ `tools/dashboard_server.py` (+783 -0) </details> ### 📄 Description ## What Adds a self-contained real-time monitoring web dashboard (`tools/dashboard_server.py`) for Strata: - Zero external dependencies: implemented purely with Python standard library (`http.server`, `urllib`, `json`, `subprocess`, `ctypes`). - Single-page responsive dark UI with live SVG telemetry gauges, mini trend charts, and real-time generation metrics. - Runs alongside the Strata engine server: `python tools/dashboard_server.py --port 8081 --server http://127.0.0.1:8080`. ## Preview ![Strata Live Dashboard Preview](https://github.com/code-martin/Strata/releases/download/v0.1.6-assets/dashboard_preview.png) ## Features - **Strata Engine Tracking**: - Live state, prompt/generation progress bar, current token throughput (tok/s), context window utilization, and active KV cache mode. - Completed request history log with prefill/gen timing, token counts, and effective speeds. - **Hardware Telemetry (Windows & Linux)**: - **GPU**: Util %, VRAM usage/capacity, temperature, board power draw, active PCIe generation and lane width (e.g. `PCIe 4.0 x16` via NVML), and expert cache slots in VRAM. - **CPU & RAM**: Core/thread count, CPU utilization, system RAM used/total. - **NVMe Activity**: Per-disk read/write MB/s and load percentage (queries PDH on Windows, `/proc/diskstats` on Linux) to monitor DirectStorage/SSD streaming during MoE expert offloading. - **Resilient**: Gracefully handles engine reconnects, idle periods, and background streaming. ## Verification - Tested on Windows 11 with NVIDIA RTX 3080 + AMD Ryzen 9 5950X + Dual NVMe SSDs while running Strata with Qwen3.8-Flash-Next (Swift 1.5). - Verified live polling updates, responsive gauge animations, and request history tracking. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 01:59:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2420
No description provided.