feat(metrics): each app’s usage — a Metrics tab, memory by app, and apps that keep restarting #12

Merged
thelion merged 1 commit from feat/app-metrics into main 2026-11-07 03:37:03 +00:00
Owner

Stage 2 of the Apps rework. Needs shells-config #13 (the new series) deployed first.

  • GET /api/shell/apps/metrics?range=: per range, each container app's CPU, memory and restarts (by compose project), each program's (by site), PHP for all the shell's websites, requests per web address (Traefik routers), and the shell's memory.
  • Every app has a Metrics tab: CPU, memory and restarts (with when) for container apps and programs; requests and the shared PHP for websites. 1h / 24h / 7d.
  • Metrics shows memory stacked by app against the shell's limit (PHP and "everything else" included), and a table of memory, peak, CPU and restarts per app.
  • An app that restarted 3+ times in the last hour says Keeps restarting in Apps, on its page and on Metrics. A redeploy isn't counted.

Tests: 35 unit tests (appMetrics.js 100% lines); internal/metrics apps.go 92–100% per function; 200 e2e passing (new app-metrics.spec.js).

🤖 Generated with Claude Code

Stage 2 of the Apps rework. Needs shells-config #13 (the new series) deployed first. - `GET /api/shell/apps/metrics?range=`: per range, each container app's CPU, memory and restarts (by compose project), each program's (by site), PHP for all the shell's websites, requests per web address (Traefik routers), and the shell's memory. - **Every app has a Metrics tab**: CPU, memory and restarts (with when) for container apps and programs; requests and the shared PHP for websites. 1h / 24h / 7d. - **Metrics** shows memory stacked by app against the shell's limit (PHP and "everything else" included), and a table of memory, peak, CPU and restarts per app. - An app that restarted 3+ times in the last hour says **Keeps restarting** in Apps, on its page and on Metrics. A redeploy isn't counted. Tests: 35 unit tests (appMetrics.js 100% lines); internal/metrics apps.go 92–100% per function; 200 e2e passing (new app-metrics.spec.js). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(metrics): each app's usage — a Metrics tab, memory by app, and apps that keep restarting
Some checks failed
CI / test (pull_request) Successful in 15m17s
CI / release (pull_request) Failing after 1s
1b762cd08b
- /api/shell/apps/metrics: per range, each container app's CPU, memory and
  restarts (by compose project), each program's (by site), PHP for all the
  shell's websites, requests per web address (Traefik's routers), and the
  shell's memory — from shellsd's new series (shells-config).
- Every app has a Metrics tab: CPU, memory and restarts for container apps
  and programs; requests, and the shared PHP, for websites. 1h / 24h / 7d.
- Metrics shows memory stacked by app against the shell's limit (PHP and
  "everything else" — SSH, IRC clients, the database — included), and a
  table of each app's memory, peak, CPU and restarts.
- An app that restarted 3+ times in the last hour says so: "Keeps
  restarting" in Apps, on its Overview and on Metrics. A redeploy recreates
  containers and isn't counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thelion deleted branch feat/app-metrics 2026-11-07 03:37:03 +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!12
No description provided.