Repository navigation
Humanize byte counts in event messages (e.g. image pull size) #849
Closed
TomerKarniol
started this conversation in
Ideas
Replies: 1 comment
|
done in latest release |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
In the events view, the kubelet's "Pulled" event message ends with the image size as a raw byte count:
At a glance,
80474558 bytesis hard to read. You have to count digits to see it is about 77 MB. Sofka already shows memory and similar values in human units elsewhere, but event messages are printed exactly as the cluster sends them.How I handle it now
I count digits by eye or copy the number into a calculator. Both are slow when scanning events for a slow or oversized pull.
Proposal
When rendering an event message, rewrite
<N> bytesinto an auto-scaled binary unit. The example above would showImage size: 76.7 MiB.0.07 GiB, so the scale has to follow the value.<digits> bytes. Other text in the message is left alone.Open questions for maintainers
Pulledevents?Scope
I'm happy to implement this once the scope is agreed. It would be a small change in the event message column, with a
handle_keytest and adocs/features.mdupdate.All reactions