[collectd] collectd plugin intervals

Florian Forster octo at verplant.org
Mon Mar 22 10:01:52 CET 2010


Hi Hrisheekesh,

On Thu, Mar 18, 2010 at 04:32:56PM +0530, Hrisheekesh Kale wrote:
> Is it possible to configure different check intervals for different
> collectd plugins?

no, not yet. It's something that has been on our "would be nice" list
for a while now. The code is basically all in place, we'd just need some
clever way to configure that. Currently my favorite concept is this:

In addition to

  LoadPlugin foobar

allow to use

  <LoadPlugin foobar>
    Interval 5
  </LoadPlugin>

This would then pass a "struct { double interval; }"-pointer to the
"module_register" function which in turn passes the information to the
register_read function. An alternative would be to set the default
interval to $x before calling "module_register" and restoring the old
value afterwards. Maybe a combination of both, to that not all plugins
have to be changed but plugins which register their read function in the
config or init phases (i.e. after the global default has been restored
again) can still behave correctly.

> It is intended only for the use of the individual or entity to which
> it is addressed. If you are not the intended recipient, you are not
> authorized to read, retain, copy, print, distribute or use this
> message.

Please note that you have sent your email to a public mailing list.
There are public archives which the collectd project has no influence
on, for example on Gmane.

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/20100322/9161371d/attachment.pgp 


More information about the collectd mailing list