Dokploy / Dokploy/dokploy

Disk stats in Monitoring counts each byte twice

Open Beginner friendly
#5,385 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage🔍
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

To Reproduce

Look at the Monitoring and check /proc/diskstats separately and compare.

Current vs. Expected behavior

Each byte is counted twice because diskstats returns size for a disk and partition which always exists twice.

Only one option should be taken.

Check the code here: https://github.com/Dokploy/dokploy/blob/887a457f15521a2d7947b327e62771e5f75d18e7/packages/server/src/monitoring/utils.ts#L100

Provide environment information
Ubuntu 26
Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/server/src/monitoring/utils.ts around line 100 and compare its disk-stat calculation with /proc/diskstats on Ubuntu. Trace how disk and partition entries are selected, then verify that monitoring counts each byte only once and matches the relevant diskstats values.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, typescript
Domain
observability
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.