mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1114] [CLOSED] Monitor: per-GPU view, more cards, and a layout you can rearrange #3037
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3037
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1114
Author: @Efs-O
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:monitor/cards-gpu-selector📝 Commits (1)
0fc3529monitor: per-GPU view, more cards, and a layout you can rearrange📊 Changes
11 files changed (+1748 additions, -82 deletions)
View changed files
📝
docs/DETAILS.md(+25 -1)➕
serve/forge_stats.py(+91 -0)📝
serve/server.py(+10 -4)📝
serve/telemetry.py(+271 -29)➕
serve/test_forge_stats.py(+178 -0)➕
serve/test_lhm.py(+215 -0)📝
serve/test_monitor.py(+101 -0)📝
serve/test_server.py(+144 -1)📝
serve/web/app.css(+42 -3)📝
serve/web/app.js(+646 -38)📝
serve/web/index.html(+25 -6)📄 Description
Multi-GPU
New cards and table columns
Optional sensors
127.0.0.1:8085by default,STRATA_LHM_URLto change it, empty to disable). This adds a CPU temp card, the package power under the CPU load (the CPU card, renamed to match "GPU load") and a measured "GPUs + CPU" power card. It reads the first CPU's package sensors by name ("CPU Package" on Intel; "Core (Tctl/Tdie)" and "Package" on AMD), because LHM's sensor numbers differ between CPU models. On Windows without LHM running, the CPU temp card says "Needs LibreHardwareMonitor" and its tooltip explains how to turn on LHM's web server. On Linux the CPU temperature is read from the kernel's hwmon files instead (k10temp / zenpower on AMD, coretemp on Intel; no root, no lm-sensors); a system with neither hides the card.STRATA_FORGE_URL=http://127.0.0.1:8799set, it shows the active chat of Forge (a VS Code coding assistant for local models): turns, tool calls and tokens, read from Forge's local, read-only/stats. Disclosure: Forge is my own project and I run it on top of Strata. If you'd rather not have it in Strata, say so and I'll drop it from the PR.Both are localhost-only. LHM is polled every 2 s and backs off for 30 s after a failure. Forge is never contacted unless
STRATA_FORGE_URLis set.Layout
localStorage). A "Reset layout · 2 icons hidden" link above the cards brings everything back. It only appears when something has changed./metrics
Every new field is optional, and single-card and AMD output is unchanged:
hardware.gpus[*]:power_limit,pcie_rx_mb,pcie_tx_mb,pcie_gen,pcie_gen_max,pcie_widthhistory.gpus: per-card historyhardware.other_gpusandhardware.all_gpu_powerhardware.cpu_tempandhardware.cpu_power(LHM)hardware_static.osforgeat the top level (nullwhen the card is off)They are documented in
docs/DETAILS.md.Testing
python -m unittest serve.test_monitor serve.test_server serve.test_forge_stats serve.test_lhmon currentmain: 238 pass (the fullservesuite, 623 tests, passes after the latest rebase). The AMD sensor names are covered by a test fixture; I have no AMD machine to try it on./metricsin the browser: 6 cards (buttons, wrapping to two rows at 390 px), 5 + 1 not in use, and 7 + 1 (dropdown). The per-card lines switch to summaries above 3 cards, with every card in the tooltip.mainas one commit.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.