Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human-readable formatting of large numbers #608

Open
cowwoc opened this issue Dec 19, 2024 · 1 comment
Open

Human-readable formatting of large numbers #608

cowwoc opened this issue Dec 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cowwoc
Copy link

cowwoc commented Dec 19, 2024

Is your feature request related to a problem? Please describe.
The "stats" tab of a docker container contains many large numbers that are difficult to understand and parse. For example:

cpu_stats
  cpu_usage
    total_usage: 15579438000
    usage_in_kernelmode: 2341492000
    usage_in_usermode: 13237946000
memory_stats:
  limit: 157286400

Describe the solution you'd like
It would be helpful to format this for human consumption. For example, adding a separator every 3 digits would help.
Separately, it would be helpful to convert large number of bytes into MB or GB to make it easier to understand.

Describe alternatives you've considered
Copy/pasting numbers from the screen and breaking out a calculator, but this makes it very hard to quickly scan a container's stats.

@cowwoc cowwoc added the enhancement New feature or request label Dec 19, 2024
@cowwoc
Copy link
Author

cowwoc commented Dec 19, 2024

In the context of cpu usage (and across all the values really) you need to add units of measure because it's not obvious what units the number represents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant