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

希望添加以下功能 内存前十和 CPU前十 #2

Closed
novohool opened this issue Aug 16, 2018 · 2 comments
Closed

希望添加以下功能 内存前十和 CPU前十 #2

novohool opened this issue Aug 16, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@novohool
Copy link

查询内存占用率,并以高到低排序
docker stats --no-stream --format "{{.Container}} \t {{.MemPerc}} \t {{.CPUPerc }}"|sort -rn -k 2
查询CPU占用率,并以高到低排序
docker stats --no-stream --format "{{.Container}} \t {{.MemPerc}} \t {{.CPUPerc }}"|sort -rn -k 3

@qfdk qfdk self-assigned this Aug 16, 2018
@qfdk
Copy link
Owner

qfdk commented Aug 16, 2018

@jingslunt
感谢您的建议
目前就是想 做个比较简单的,本地操作容器方便一点儿。
其实可以 从界面再加一行,通过docker api 出来的状态。
你的只是利用command 查询出来的,没有通过api 获取状态。
暂时不支持直接在主机运行命令。 有空我考虑加一下你提到的功能。

真诚的

@qfdk qfdk added the enhancement New feature or request label Aug 22, 2018
qfdk added a commit that referenced this issue Sep 1, 2018
qfdk added a commit that referenced this issue Sep 1, 2018
@qfdk
Copy link
Owner

qfdk commented Sep 1, 2018

添加了CPU 实时使用率,此ticket关闭
cpu.png

@qfdk qfdk closed this as completed Sep 1, 2018
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

2 participants