Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htop like monitor for docker stats? [closed]

Tags:

linux

docker

docker stats gives a good overview of the cpu/mem/net io/disk io as text.

Does there exist a htop like monitor that shows the docker stats?


Same questino posted in DevOps sister site here

** Suggested answer **

ctop at https://github.com/bcicen/ctop

like image 536
Jasmine Lognnes Avatar asked Nov 25 '16 10:11

Jasmine Lognnes


People also ask

How do I monitor the resource usage of a docker container?

If you need more detailed information about a container's resource usage, use the /containers/(id)/stats API endpoint. On Linux, the Docker CLI reports memory usage by subtracting cache usage from the total memory usage.

How do I get docker container metrics?

You can look it up with docker inspect or docker ps --no-trunc . Putting everything together to look at the memory metrics for a Docker container, take a look at the following paths: /sys/fs/cgroup/memory/docker/<longid>/ on cgroup v1, cgroupfs driver. /sys/fs/cgroup/memory/system.

Does docker use cgroups?

Docker uses namespaces with cgroups , to achieve the said isolation. Adding this feature has enabled Docker to graduate "rootless" to a fully supported feature. Rootless mode facilitates running the entire Docker environment without root system privileges.


1 Answers

Maybe you are looking for docker top see the doc https://docs.docker.com/engine/reference/commandline/top/ you can use the same options as for ps so you may have details

An example:

docker top mycontainerid o pid cmd
like image 119
user2915097 Avatar answered Sep 25 '22 15:09

user2915097