#1879
[Feature]: Server overview: show all mounted disks, not just root filesystem
Existing issue
- I have searched the existing issues and found no duplicate.
Problem or use case
Summary
The server Overview page only shows disk usage for the root filesystem (/).
Servers with additional mounted disks (e.g. a large data drive at /data) have no visibility in the dashboard.
Current behaviour
- DISK card shows only
/(e.g. "40.1 GB of 878.1 GB"). - A second disk mounted at
/data(7.3 TB, ext4) is not shown anywhere. - No alerts if a non-root disk fills up.
Use case
Bulk data (video files, backups, uploads) lives on a separate large HDD, while Docker and apps stay on the NVMe root disk. Today the data disk can fill up silently.
Environment
- OpenShip self-hosted
- Ubuntu 24.04, NVMe root disk + separate HDD mounted at /data
Proposed solution
Proposed
- Show every real mounted filesystem (skip tmpfs/overlay/efivarfs etc.), each with mount point, size, used, free and %.
- Optionally let users pick which mounts to monitor.
- Include non-root disks in Monitoring / Issues, with a threshold alert (e.g. >85% used).
Alternatives considered
No response
Additional context
No response
Activity
2Split works for me, the alert can come later. Seeing all the disks is the main thing.
If it helps for testing, my box has NVMe on / and a 7.3T HDD on /data, and only / shows up right now. Some Docker volumes are bind-mounted into /data, so just make sure /data itself still shows up.
Happy to test the PR when it's ready.
I'd like to pick this up. Proposed scope for a first PR, so it stays small:
SERVER_STATS_COMMAND(packages/adapters/src/system/server-stats.ts) only runsdf -Pk /today. I'd add a second listing of real mounts (skipping tmpfs, devtmpfs, overlay, squashfs, proc/sysfs/cgroup, loop devices and Docker/kubelet mount paths, and zero-size rows), returned as an optionaldisks: { mount, fsType, total, used, avail }[]next to the existing fields. The flatdiskTotal/diskUsed/diskAvailfor/stay as they are, so the usage stream, CLI and SDK consumers don't change. A malformed row is dropped instead of failing the whole sample. macOS keeps working through the plaindf -Pkpath.server-stats.test.tswith a multi-mount fakedfcovering the filters and the macOS case.I'd leave the threshold alert (a new
disk_pressureincident kind, detector in health-watch, notification category and a configurable threshold) and "pick which mounts to monitor" for a follow-up, since they add a new incident kind and a setting.Does that split work for you, or would you rather have the alert in the same PR?