Discussion:
[Lxc-users] collectd lxc plugin
Trent W. Buck
14 years ago
Permalink
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?
Daniel Lezcano
14 years ago
Permalink
...
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.
Trent W. Buck
14 years ago
Permalink
Post by Daniel Lezcano
Post by Trent W. Buck
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.
I guess that's what I was thinking; I didn't articulate it properly :-)
Loading...