feat: container-stats #4

Merged
thelion merged 3 commits from feat/container-stats into main 2026-11-05 02:56:39 +00:00
Owner
No description provided.
The Containers page samples podman's counters every 5 s while it's open
and visible (GET /api/shell/containers/stats → shellsd
/v1/container-stats) and shows, for each running container, CPU (from the
change in CPU time; 100% is one core), memory against its limit — or the
shell's, without one — network and disk throughput and its process count,
with totals per Compose project and for the whole page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Logs buttons open /containers/logs: a big live view (refetched every
2 s, following the end unless you scroll up, with a jump-to-newest
button), timestamps, how many lines, a filter, wrap, pause and download.
For a compose project every service's logs are merged by time and tagged
with the service in its own colour, like docker compose logs. Replaces the
small inline panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(containers): full-page metrics for a container or a compose project
Some checks failed
CI / test (pull_request) Successful in 11m59s
CI / release (pull_request) Failing after 0s
b27b57f61c
A Metrics button on each container and project opens
/containers/metrics: tiles and graphs like the Metrics tab — CPU (100% is
one core), memory against its limit, network and disk — over the same
ranges, with auto-refresh and the range in the URL. A project adds up its
containers (its memory limit is capped at the shell's, since containers
without their own limit report the shell's) and lists usage by service,
each linking to its own page.

Reads shells_podman_* (shellsd's podman samples) from the metrics store
via GET /api/shell/containers/metrics, always scoped to the session's own
shell; project and container names are validated before they reach a
query.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thelion referenced this pull request from a commit 2026-11-05 02:56:39 +00:00
thelion deleted branch feat/container-stats 2026-11-05 02:56:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
ircforever/shells-dashboard!4
No description provided.