[collectd] vserver plugin for collectd

Florian Forster octo at verplant.org
Mon Mar 13 08:04:31 CET 2006


Hi Sebastian :)

On Mon, Mar 13, 2006 at 01:40:11AM +0100, Sebastian Harl wrote:
> Tonight, I've written a plugin that collects the system ressources used by 
> VServers (http://linux-vserver.org/).

Sound interesting; guess I have to set up VServer one day ;)

>        VServer socket msg. accounting (vserver-<xid>/socket.rrd)
>              DS:unix_in:COUNTER:25:0:9223372036854775807
>              DS:unix_out:COUNTER:25:0:9223372036854775807
>              DS:inet_in:COUNTER:25:0:9223372036854775807
>              DS:inet_out:COUNTER:25:0:9223372036854775807
>              DS:inet6_in:COUNTER:25:0:9223372036854775807
>              DS:inet6_out:COUNTER:25:0:9223372036854775807
>              DS:other_in:COUNTER:25:0:9223372036854775807
>              DS:other_out:COUNTER:25:0:9223372036854775807
>              DS:unspec_in:COUNTER:25:0:9223372036854775807
>              DS:unspec_out:COUNTER:25:0:9223372036854775807

I'd suggest creating five RRD files, each with the DS `incoming' and
`outgoing', named
`vserver-${XID}/traffic-{unix,inet,inet6,other,unspec}.rrd'. That way
adding more socket types (you never knoow what the future may bring ;)
can easily be added and graphing the data is much easier.. (For
`collection.cgi' at least ;)

>        VServer load (vserver-<xid>/load.rrd)
>              DS:avg1:GAUGE:25:0:100
>              DS:avg5:GAUGE:25:0:100
>              DS:avg15:GAUGE:25:0:100

If you rename the DSes to `shortterm', `midterm' and `longterm' the
`verser-${XID}/load.rrd' files have the same structure as `./load.rrd',
making it easier for scripts again ;)

>   Count of processes running in the VServers.
>   Memory usage of the VServers:
>     - vm is the virtual memory
>     - vml is locked memory
>     - rss (resident set size) is the real physical RAM used
>     - anon (anonymous memory) is "memory not backed by any file"

I can see why these files look different than
`./{processes,memory}.rrd'. I'd suggest renaming the files to
`vserver-{$XID}/vs_{processes,memory}.rrd'. The goal is, as with the
suggestions above, that you can tell from the filename what type the
RRD-file has, not taking the directory name in account.

Thanks for providing this plugin :) I'm looking forward to seeing some
nice graphs soon ;)

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20060313/31bcbe66/attachment.pgp


More information about the Collectd mailing list