Francois-Xavier Bourlet
<francois-xavier.bour...@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.


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to