[Containers] container monitoring

Aleksa Sarai asarai at suse.com
Tue Mar 8 15:40:49 MST 2016


>     Hello all
>
>     what is the best tools to monitor i/o, filesystem,cpu, memory, ...of
>     each container either on one node or multinode?
>       i/o, filesystem are the most important ones to monitor.

On a single-node basis, you can get /some/ information from `docker 
stats`, which uses information from the related cgroups of the 
containers (this includes both the usage and limit for most of things 
you mention -- though I'm not sure what you mean by "filesystem"). 
There's a new feature that's being worked on in Docker to allow a 
container to join the cgroups of another container, once that's done you 
could run a container with your tooling and connect it to a container 
you want to monitor and then scoop up the output (see next point).

As for multi-node, I'm not really sure if there's a dedicated tool. You 
could try playing with something like logstash and elasticsearch to 
"log" the usage statistics and do analytics on them. I've never use 
logstash personally, so I can't really comment on how well that would 
work for your usecase (which you haven't told us).

-- 
Aleksa Sarai
Docker Core Specialist
SUSE Australia
https://www.cyphar.com/


More information about the Containers mailing list