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

Florian Forster octo at verplant.org
Fri Nov 11 21:24:53 CET 2016


 configure.ac           |   72 +++++
 proto/Makefile.am      |    2 +-
 proto/prometheus.proto |   81 +++++
 src/Makefile.am        |   18 ++
 src/collectd.conf.in   |    5 +
 src/collectd.conf.pod  |   35 ++
 src/write_prometheus.c |  829 ++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 1041 insertions(+), 1 deletion(-)

New commits:
commit 78e4df368cd6fd548427d52ecd288c96e2029ce6
Merge: 41288c6 604607d
Author: Florian Forster <octo at collectd.org>
Date:   Fri Nov 11 21:24:21 2016 +0100

    Merge remote-tracking branch 'github/pr/1967'

commit 604607d3463fbe13eac252308f8a2497fb190167
Author: Florian Forster <octo at collectd.org>
Date:   Fri Nov 11 20:42:36 2016 +0100

    write_prometheus plugin: Use the "static" macro to specify PROMETHEUS_DEFAULT_STALENESS_DELTA.
    
    Fixes:
    
        write_prometheus.c:56:1: error: initializer element is not constant
         static cdtime_t staleness_delta = PROMETHEUS_DEFAULT_STALENESS_DELTA;
         ^

commit c53c496b6db4e11fd8aed8df9556dad481220196
Author: Florian Forster <octo at collectd.org>
Date:   Mon Oct 24 09:03:32 2016 +0200

    write_prometheus plugin: Don't allocate metric families in prom_missing().

commit dc57f6e8f2394b51dd35d1d8231ef110c075b831
Author: Marc Fournier <marc.fournier at camptocamp.com>
Date:   Tue Nov 1 11:15:24 2016 +0100

    write_prometheus: add support for libmicrohttpd 0.9.45+
    
    Add switch on MHD_VERSION to support both legacy and modern MHD functions.
    
    `MHD_create_response_from_data()` is deprecated since libmicrohttpd
    0.9.5 and makes the build fail since 0.9.45.

commit 3d2dcd7b53979a1050ad632ac4881c2a7dd618af
Author: Florian Forster <octo at collectd.org>
Date:   Sat Oct 1 21:22:12 2016 +0200

    write_prometheus plugin: Improve performance of metric_cmp().
    
    This function is a hotspot because it is used by bsearch() to look up
    metrics in a metric family. This simple (though non-obvious) change
    brings prom_write() complexity down from 3000 instructions/call to 2640
    instructions/call, i.e. a 12% improvement.

commit 649a826ba0792bf4f48968c879011c6e1bcbc64a
Author: Florian Forster <octo at collectd.org>
Date:   Sat Oct 1 10:12:41 2016 +0200

    write_prometheus plugin: Optimize metric_family_get_metric().
    
    Profiling showed that prom_write() spent 73% of its time in this
    function. 36% of time was spent in metric_create() and 19% was spent in
    metric_destroy().
    
    This patch replaces these two calls by a stack allocation, reducing the
    time prom_write() spends in metric_family_get_metric() to 42%.

commit cc893903f8453dc96a797b319bdd4e294052de6f
Author: Florian Forster <octo at collectd.org>
Date:   Thu Sep 29 21:38:24 2016 +0200

    write_prometheus plugin: New plugin for exposing metrics to Prometheus.




More information about the collectd-changes mailing list