#1879

[Feature]: Server overview: show all mounted disks, not just root filesystem

Openadampillai96opened 11d ago

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

2
FrancocDev10d ago

I'd like to pick this up. Proposed scope for a first PR, so it stays small:

  • Collection: SERVER_STATS_COMMAND (packages/adapters/src/system/server-stats.ts) only runs df -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 optional disks: { mount, fsType, total, used, avail }[] next to the existing fields. The flat diskTotal/diskUsed/diskAvail for / 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 plain df -Pk path.
  • Dashboard: the Overview keeps the current root DISK card and adds a compact per-mount list (mount point, size, used, free, %) when the server has more than one real mount.
  • Tests: extend server-stats.test.ts with a multi-mount fake df covering the filters and the macOS case.

I'd leave the threshold alert (a new disk_pressure incident 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?

adampillai9610d ago

Split 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.