You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instance disk metrics should not be displayed in bytes #1866
I'm seeing raw counts of things like number of/bytes for reads/writes. I'm assuming this is not the design intent given those raw numbers aren't really that useful and it also is not how we display /utilization.
Is there supposed to be some sort of dynamic unit selection here?
Also, when I resize my browser those Y-axis labels continue to run outside the box (sorry I don't know the technical word here). I guess I'd have expected the chart to scale more dynamically, perhaps some % of new width would be allocated to the axis labels and the rest to the graph itself.
Obviously we should do something similar here. The main open question for me is whether we should hard-code a unit like we do above — presumably MiB or GiB — or do we need to be more clever based on the order of magnitude of the data we're seeing (if this data tends to vary over a pretty wide range).
The usual trick with this kind of data is to divide it by 10 so that it’s always between one inclusive and 1000 exclusive. Each time you divide you move up by one SI prefix, so you start with bytes, then KiB, then MiB, etc., 00 rounding to one or two decimal places.
Activity
[-]Metrics: Units are raw?[/-][+]Instance disk metrics should not be displayed in bytes[/+]david-crespo commentedon Dec 18, 2023
We are being very unsmart here, just jamming the data directly into the chart without any transformation.
console/app/pages/project/instances/instance/tabs/MetricsTab.tsx
Lines 47 to 81 in 02c6ce7
Compare to utilization tables, where we explicitly transform to a hard-coded unit:
console/app/pages/SiloUtilizationPage.tsx
Lines 104 to 117 in 02c6ce7
Obviously we should do something similar here. The main open question for me is whether we should hard-code a unit like we do above — presumably
MiBorGiB— or do we need to be more clever based on the order of magnitude of the data we're seeing (if this data tends to vary over a pretty wide range).bnaecker commentedon Dec 19, 2023