[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Thu Oct 16 09:57:36 CEST 2008


 src/plugin.c |   42 ++++++++++++++++++++++++++++++++++++++----
 src/plugin.h |    8 ++++++++
 2 files changed, 46 insertions(+), 4 deletions(-)

New commits:
commit b12091a31a40edb82f2947989af981f26d1d808e
Author: Sebastian Harl <sh at tokkee.org>
Date:   Wed Oct 15 09:28:15 2008 +0200

    src/plugin.[ch]: Added support for "filter" callbacks.
    
    This type of callback is very similar to write callbacks:
    
      int (*) (const data_set_t *, value_list_t *)
    
    The return value of that callback indicates what further actions are to be
    taken. It may be a bitwise OR of any of the following new flags:
    FILTER_NOWRITE or FILTER_NOTHRESHOLD_CHECK. If both flags are used (which
    equals the flag FILTER_IGNORE), the value list is ignored completely.
    
    If more than one such callback is available, the respective return values are
    bitwise OR'ed. If they "sum" up to FILTER_IGNORE, no further callbacks are
    executed (lazy evaluation).
    
    This type of callback may be used for the following purposes:
    
     * rewrite information included in the value list (e.g. the instance
       name)
    
     * discard certain information on a fine-grained level based on the
       information provided by the data set and value list
    
    Signed-off-by: Sebastian Harl <sh at tokkee.org>
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>




More information about the collectd-changes mailing list