2 Commits

Author SHA1 Message Date
fbae64a11a Report per-core CPU percentages alongside the overall figure
Derived from the same percpu psutil.cpu_percent() call rather than a
second blocking call, so the aggregate and the per-core breakdown
describe the same sampling window.
2026-07-29 21:13:00 +02:00
ef6b313d47 Add a stats agent container: FastAPI + psutil behind an API key
Exposes host CPU, memory, disk, and network usage over HTTP for the
dashboard's System Stats block (or anything else that can send a header)
to poll. Auth is a required X-API-Key, auto-generated and persisted on
first run if not supplied, checked with a constant-time comparison and
rate-limited after repeated failures. No CORS, so a browser can't call it
directly from another origin -- only a server-side caller can, keeping
the key out of anyone's network tab.
2026-07-29 20:20:48 +02:00