[Lxc-users] collectd lxc plugin

Daniel Lezcano daniel.lezcano at free.fr
Thu Feb 17 11:12:55 UTC 2011


On 02/17/2011 05:52 AM, Trent W. Buck wrote:
> collectd is a daemon that collects statistics in a round-robin database,
> for subsequent performance analysis.  I'm deploying it as a replacement
> for munin.
>
> When I deploy collectd nodes in containers, many of the basic plugins
> are not useful, because (as at 2.6.32) queries like "how much memory is
> free?" return the dom0's state, rather than the container's.
>
> In collectd 4.9 someone solved this for OpenVZ by running collectd on
> the HN (i.e. dom0) and having it emit statistics for all containers.  I
> think it can be translated to LXC by having it read files in
> /path/to/cgroup/<container name>/.
>
> Has anyone already written an LXC collectd plugin?

Actually, it would be better to aim a larger scope by creating a cgroup 
collectd plugin.
Lxc will be automatically taken into account with this plugin because a 
container is associated to a cgroup.




More information about the lxc-users mailing list