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. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
