[collectd] Hit counter in threshold

Florian Forster octo at verplant.org
Sat Jul 11 15:42:13 CEST 2009


Hi Andrés,

On Fri, Jul 03, 2009 at 11:33:20AM +0200, Andrés J. Díaz wrote:
> I've attached a patch to add hit counter to thresholds, that is, each
> time when threhsold raised, then an internal hit counter is
> incremented, when the value of the counter raise a specific value
> setted in configuration, then the notification is generated and
> counter is reset.

thank you very much for your code :) I'm currently a bit undecided in
which direction I want the threshold checking / monitoring stuff to go.
The two general direcions are:

 1) Improve the threshold code as it currently exists.
 2) Favor to use the filter machanism to check values and dispatch
    notifications / do other stuff. The existing <Threshold /> block(s)
    should then be translated to appropriate filters.

Implementing (1) is probably a lot easier, but I think that (2) may be
easier to extend in the future. 

What do you think?

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/20090711/bc89ef46/attachment.pgp 


More information about the collectd mailing list