feat(widgets): Overview verdict, pending monitors' age, fullest filesystems first (#5810)
- Overview: a verdict line when something is wrong ('1 alert firing, 1
monitor down.'); its picker description now says what it lists (alerts,
monitors down, anomalies). Host figures have their home in Hosts.
Comments no longer name the Status page that was folded into Monitors.
- Monitors widget: a monitor not checked yet says when it was added.
- Host page: filesystems fullest first, by the worse of space and inodes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -864,6 +864,10 @@ def _split_host_metrics(host_name: str, latest: dict) -> tuple:
|
||||
else:
|
||||
mounts[suffix] = metrics
|
||||
cores.sort(key=lambda c: c[0])
|
||||
# Fullest first, by the worse of space and inodes (#5810): a full
|
||||
# /var/lib/docker must not sort after /boot.
|
||||
mounts = dict(sorted(mounts.items(), key=lambda kv: (
|
||||
-max(kv[1].get("disk_used_pct") or 0, kv[1].get("inodes_used_pct") or 0), kv[0])))
|
||||
return hostlvl, cores, nets, disks_io, temps, mounts
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user