netbox icon indicating copy to clipboard operation
netbox copied to clipboard

make cluster resource counters more readable (add commas or convert amounts to more readable measurements)

Open ITJamie opened this issue 1 year ago • 2 comments

NetBox version

v4.0-beta1

Feature type

Change to existing functionality

Proposed functionality

adjust the resource counters on the cluster view page to add comma's or change from MB -> GB -> TB Screenshot 2024-04-26 at 23 47 29

right now it can be kind of unreadable for larger clusters

Use case

when viewing clusters with a large amount of assigned resources (high amounts of ram , CPU or storage) it can be a little hard to read (especially memory as its in MB)

Database changes

n/a

External dependencies

n/a

ITJamie avatar Apr 26 '24 22:04 ITJamie

We have the humanize_megabytes() template filter in place which does this for certain values, but only for even multiples of 1024. E.g. a value of 4096 MB will display as 4 GB but a value of 4000 MB will not be converted. It seems reasonable to display fractional values, e.g. 2.5 GB, however we also want to ensure that the exact numeric value is always conveyed somehow.

jeremystretch avatar Apr 29 '24 13:04 jeremystretch

Could you please assign it to me?

Julio-Oliveira-Encora avatar Apr 29 '24 15:04 Julio-Oliveira-Encora