You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds a self-hosted Resource Usage breakdown to the Monitoring page. It shows the current CPU, memory, disk size, disk I/O, and network I/O usage per running Docker container, and lets users expand a container row to inspect its top processes by CPU/memory usage.
The feature is only exposed for the Dokploy container monitoring view and reuses the existing monitoring:read permission. Docker container IDs are validated before running docker top, and the Cloud version keeps the same restricted behavior as the existing monitoring endpoints.
Checklist
Before submitting this PR, please make sure that:
You created a dedicated branch based on the canary branch.
You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.
I need all this because I can’t figure out which container or which service is causing such heavy loads that my VPS is freezing. Therefore, I would like to see this moment, if I have any such loads and loads, I would like to receive a notification in Telegram that a certain container is starting to heavily load my VPS, that it stops responding to me.
@Siumauricio this PR now has a linked feature request (#4653), was rebased on the latest canary, and was re-verified locally after rebase. Could you please review it when you have time and approve the GitHub Actions workflow run for this fork PR?
Any updates? I'm really looking forward to this change. @luanupe
Bro, there's only one admin here and this repo has a ton of vulnerabilities. I'm currently fixing them in my fork, and I'll also add all the functionality that was suggested here. The admin is silent and barely crawling like a turtle. I consider myself doing work and want to rely on my own development because the admin doesn't devote enough time to this project. Apparently, he's only concerned about money and earning money from people, and he's not interested in security or improving the project - because I don't see a reason why he hasn't confirmed all my PRs yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
This PR adds a self-hosted Resource Usage breakdown to the Monitoring page. It shows the current CPU, memory, disk size, disk I/O, and network I/O usage per running Docker container, and lets users expand a container row to inspect its top processes by CPU/memory usage.
The feature is only exposed for the Dokploy container monitoring view and reuses the existing
monitoring:readpermission. Docker container IDs are validated before runningdocker top, and the Cloud version keeps the same restricted behavior as the existing monitoring endpoints.Checklist
Before submitting this PR, please make sure that:
canarybranch.Testing
corepack pnpm --dir apps/dokploy exec vitest --config __test__/vitest.config.ts __test__/monitoring/container-resource-usage.test.ts --runcorepack pnpm exec biome check apps/dokploy/__test__/monitoring/container-resource-usage.test.ts apps/dokploy/components/dashboard/monitoring/container-resource-usage/container-resource-usage.tsx apps/dokploy/components/dashboard/monitoring/container-resource-usage/utils.ts apps/dokploy/components/dashboard/monitoring/free/container/show-free-container-monitoring.tsx apps/dokploy/server/api/routers/server.ts packages/server/src/services/docker.tscorepack pnpm --filter=dokploy run typecheckcorepack pnpm --filter=server run typecheckcorepack pnpm --filter=dokploy run build-servercorepack pnpm --filter=dokploy run build-nextcorepack pnpm --filter=server run buildhttp://localhost:3000/dashboard/monitoringwith the Resource Usage table expanded and container process drill-down verified.Issues related (if applicable)
Closes #4653
Screenshots (if applicable)