[collectd] lxc plugin

Sebastian Harl sh at tokkee.org
Thu May 3 14:34:39 CEST 2012


Hi,

On Wed, May 02, 2012 at 07:19:49PM +0100, Ben Butler-Cole wrote:
> On 2 May 2012 18:56, Sebastian Harl <sh at tokkee.org> wrote:
> >  On Wed, May 02, 2012 at 04:24:41PM +0100, Ben Butler-Cole wrote:
> > > I see from the mailing list archives that there was work on a collectd
> > > plugin for reporting on resource usage by lxc containers. Does anyone
> > know
> > > what the status of this is? I would be interested in contributing to
> > > development if it's still viable.
> >
> > In fact, this will be solved by a "cgroup" plugin. As far as I could
> > see, there are currently two different proposals.
> >
> 
> Ah, that's much better than something lxc-specific. Thank you.
> 
> Is there a sensible way to get hold of a single plugin like one of these on
> its own, without having to have a custom build of the whole of collectd?

Yep. All you need is the collectd headers (and possible further
third-party libs required by the plugin). Then, download the plugin's
sources and compile it with something like (on Linux) 'gcc -shared -fPIC
-o plugin.so plugin.c'. You might need to add a few -I and possibly -l,
-L.

If you stumble across any problems, don't hesitate to post compiler
errors on this list ;-)

HTH,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120503/88eb9538/attachment.pgp>


More information about the collectd mailing list