Skip to content

Show swap usage in the monitoring memory card #4652

@agentHits

Description

@agentHits

What problem will this feature address?

The Monitoring page shows RAM usage, but it does not show swap usage when the host has swap available. This can hide memory pressure from users, especially on systems where services keep running because the OS is actively using swap.

Describe the solution you'd like

Show swap usage in the Memory Usage card when swap data is available. The card should keep the existing RAM usage display and add a second, separate swap usage row only when the reported swap total is greater than zero.

A PR is already open for this implementation: #4574

Describe alternatives you've considered

Users can check swap manually with host-level tools such as free, swapon, or platform-specific commands, but that requires leaving the Dokploy UI and makes memory pressure less visible during routine monitoring.

Additional context

The proposed PR stores swap usage alongside the existing memory stats without changing existing RAM fields, keeps older monitoring entries compatible, includes a macOS fallback for local development, and includes tests plus a screenshot.

Monitoring swap usage

Will you send a PR to implement it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions