accuracy fix: container_stats.rs tracks mem metrics only, not swap

This commit is contained in:
lexis 2026-06-06 08:43:51 +02:00 committed by mara
commit 840abab82d

View file

@ -124,9 +124,10 @@ hive-c0re/ host daemon + sibling operator CLI (lib + 2 bins)
model mix. Backs GET /api/stats-hive for the
dashboard's ST4TS tab; missing / unreadable dbs
skipped (one bad db never fails the endpoint).
src/container_stats.rs per-container resource metrics (cpu %, mem %, swap)
polled live; aggregated for dashboard display.
Skips unhealthy / stopped containers gracefully.
src/container_stats.rs per-container resource metrics (cpu %, current/peak/max
memory in bytes) polled live from cgroup-v2;
aggregated for dashboard display. Skips unhealthy /
stopped containers gracefully.
src/crash_watch.rs poll every 10s; fire HelperEvent::ContainerCrash
when a previously-running container disappears
without an operator-initiated transient (or a