hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 03ea6d1bda feat(stats): per-container cpu/mem load (#1424 p3)
C0NT41N3R L04D on the SYST3M tab + GET /api/container-resources.

Backend (hive-c0re/src/container_stats.rs): reads cgroup v2 cpu.stat +
memory.{current,peak,max} for each running agent machine
(machine-h\x2d<name>.scope under machine.slice), read-only/world-
readable so no hive-priv. CPU is a two-sample (~200ms) host-normalised
percentage; one shared sleep covers all agents. Skips agents whose
scope dir is absent (= not running). Network omitted: agents share the
host netns, no per-container counter.

Frontend: a polled C0NT41N3R L04D table on SYST3M (agent / cpu / mem /
peak / limit with meter bars), reusing the ST4TS table style. Polls
/api/container-resources every 5s only while the tab is active.

Backend reviewed-in-principle by damocles (path escaping + cpu delta
math); ping for the on-host sign-off.
2026-06-05 23:06:33 +02:00
..
common.css fix(#1307) add appearance:none to .btn to strip browser UA button chrome 2026-06-04 21:04:45 +02:00
common.js fix(#1157): add viewport meta to all pages; use clientWidth for side panel 2026-06-03 18:23:37 +02:00
dashboard.css feat(stats): per-container cpu/mem load (#1424 p3) 2026-06-05 23:06:33 +02:00
flow.css feat(dashboard): split monolithic CSS into common + per-page bundles 2026-06-02 11:19:32 +02:00
flow.html fix(#1157): add viewport meta to all pages; use clientWidth for side panel 2026-06-03 18:23:37 +02:00
flow.js fix(flow): flashError was inserting at top of terminal (invisible) 2026-06-05 13:02:48 +02:00
index.html feat(stats): per-container cpu/mem load (#1424 p3) 2026-06-05 23:06:33 +02:00
logs.css feat(logs): URL deep-link + fetched-age chip for AGENT/SYSTEM tabs 2026-06-05 13:17:43 +02:00
logs.html feat(logs): URL deep-link + fetched-age chip for AGENT/SYSTEM tabs 2026-06-05 13:17:43 +02:00
logs.js feat(logs): URL deep-link + fetched-age chip for AGENT/SYSTEM tabs 2026-06-05 13:17:43 +02:00
stream-worker.js chore: scrub #NNN issue references from code comments and nix descriptions 2026-06-01 13:30:52 +02:00
tabs.js feat(stats): per-container cpu/mem load (#1424 p3) 2026-06-05 23:06:33 +02:00