Skip to content

feat(project): add resource usage summaries#4429

Draft
cromulus wants to merge 2 commits into
Dokploy:canaryfrom
cromulus:feat/project-resource-utilization
Draft

feat(project): add resource usage summaries#4429
cromulus wants to merge 2 commits into
Dokploy:canaryfrom
cromulus:feat/project-resource-utilization

Conversation

@cromulus
Copy link
Copy Markdown

Summary

Adds project- and service-level resource usage summaries for self-hosted Dokploy instances.

  • Adds a project.resourceMetrics tRPC query gated by the existing monitoring read permission.
  • Aggregates Docker CPU, memory, block I/O, and network I/O by Dokploy service and project across configured servers.
  • Displays compact usage strips with CPU sparklines on project cards, environment service cards, and service detail headers.
  • Stores a short local metrics history under the existing monitoring path so sparklines can render over time.

Notes

  • Disk shown in this first pass is Docker block I/O read/write, not persistent volume capacity usage.
  • History is sampled when the UI requests metrics, matching the current on-demand monitoring pattern rather than adding a background collector.
  • The endpoint is disabled for cloud deployments and respects project, environment, and service access filters for non-admin members.

Validation

  • ASDF_NODEJS_VERSION=24.14.1 pnpm exec biome check <touched files>
  • ASDF_NODEJS_VERSION=24.14.1 pnpm --filter=dokploy run typecheck
  • ASDF_NODEJS_VERSION=24.14.1 pnpm --filter=@dokploy/server run typecheck
  • git diff --check

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.

1 participant