misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
9.95k stars 1.35k forks source link

Server Metrics Widget Disk tab on ARM Server displays efivars device stats #14525

Closed aliceif closed 1 month ago

aliceif commented 1 month ago

Summary

The Server Metric Widget on my CAX21 VPS from Hetzner shows the statistics for the efivars file system in the Disk statistics. This is not very useful, it would probably be more useful to use the biggest drive or an average over all disks instead of the first disk that the systeminformation package finds (I think this is what misskey currently does in the code).

Example: image

$  df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           773M  2.4M  771M   1% /run
efivarfs        256K   18K  239K   7% /sys/firmware/efi/efivars
/dev/sda1        75G   26G   47G  36% /
tmpfs           3.8G  2.1M  3.8G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda15      253M  6.4M  246M   3% /boot/efi
tmpfs           773M   12K  773M   1% /run/user/1000
$

Purpose

It will help administrators keep an eye on their server's storage usage.

Do you want to implement this feature yourself?

KisaragiEffective commented 1 month ago

Duplicate of #13573