Show memory and disk capacity on dashboard tiles #20
Reference in New Issue
Block a user
Delete Branch "feature/tile-capacity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds used/total capacity (e.g. "19.6/32.0 GB") under the Mem/Disk bars on each host card, in addition to the existing percentage.
Changes:
MetricSnapshotgainsmemTotalBytes/memUsedBytes/diskTotalBytes/diskUsedBytesProxmoxCollectorandSshHostCollectorpopulate them from data they already fetchmetric_snapshotstable gets 4 new columns, with a migration for the already-deployed CT122 DB (same pattern as the existingmdns_hostname/is_bootstrapmigrations)/api/hostsand the webHostSummarytype pass the new fields throughHostCardrenders a new muted capacity line under the bars, styled like the existing pressure-rowVerified: ran a throwaway local instance (temp SQLite DB, seeded a synthetic host/snapshot, logged in via the local admin account, screenshotted the rendered tile) to confirm the end-to-end render, not just the typecheck.
Caveat: for the two SSH-collected hosts (omv, ripper), this assumes the remote
monitor-readonly.shscript'sMEMLINE/DISK_fields are raw bytes, matching Proxmox's convention. Couldn't verify directly -- that script only lives on those two hosts, not in this repo. Worth a quick visual sanity check on those two cards once deployed.