Skip to content

feat(usage): show resource usage of the server and of each instance - #619

Merged
mateuscmtropical merged 1 commit into
mainfrom
feat/usage-dashboard
Nov 8, 2026
Merged

mateuscmtropical merged 1 commit into
mainfrom
feat/usage-dashboard

Conversation

@mateuscmtropical

Copy link
Copy Markdown
Owner

Summary

  • Add /internal/usage (owner only) and /internal/my-usage (the caller's own instance, chosen by the secret) to the hub, and /api/usage and /api/usage/me to the instances.
  • Add one read only Docker guard route: one stats sample (stream=false) of a person container. Everything else stays refused.
  • Add the Resource usage panel under Account with numbers and native meters, refreshing every few seconds.

Closes #618

Type of change

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation
  • Maintenance (tooling, CI, dependencies)

How it was tested

  • pnpm check passes.
  • Tests for the permission checks, the guard, the stats maths, route mounting and the panel.

Checklist

  • pnpm check passes
  • Tests added or updated
  • Docs updated (README, docs/, or CHANGELOG.md for user-facing changes)

@mateuscmtropical
mateuscmtropical merged commit 39517ba into main Nov 8, 2026
18 of 19 checks passed
@mateuscmtropical
mateuscmtropical deleted the feat/usage-dashboard branch November 8, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show resource usage of the server and of each instance

1 participant