[Lxc-users] LXC Statistics Collection

Trent W. Buck twb at cybersource.com.au
Tue Mar 15 02:44:06 UTC 2011


Francois-Xavier Bourlet
<francois-xavier.bourlet at dotcloud.com>
writes:

> I am trying to collects statistics from LXC container externally. By
> externally, I mean without executing anything inside the container,
> but just grabbing all the informations from the outside.

I can't help with your problem, but I am interested in reviewing your
code once you get it working.  Deep in my TODO list is to write a
similar module for collectd, so that I can graph e.g. container memory
usage.  You can't just run collectd inside the container because (as at
2.6.32) the containers "see" the whole RAM but just can't use all of it.

As to paths, I suggest you just make the path to the containers and the
cgroup mountpoint run-time options, with either hard-coded or auto-
detection as the default behaviour.  You may want to look at how
lxc-ls(1) does it.





More information about the lxc-users mailing list