package/collectd: add write_redis support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 9 Jun 2019 22:51:19 +0000 (00:51 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 10 Jun 2019 13:30:48 +0000 (15:30 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/collectd/Config.in
package/collectd/collectd.mk

index 79794108718ac9ae2b0760ab8e7ace21812e4e02..990dd44e6d9cc188eda0c22786b12c070fb8950d 100644 (file)
@@ -616,6 +616,12 @@ comment "write_prometheus needs a toolchain w/ C++, host gcc >= 4.8"
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_4_8
        depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 
+config BR2_PACKAGE_COLLECTD_WRITEREDIS
+       bool "write_redis"
+       select BR2_PACKAGE_HIREDIS
+       help
+         Sends data to Redis.
+
 config BR2_PACKAGE_COLLECTD_WRITESENSU
        bool "write_sensu"
        help
index ddafd0619020ff4026b2aeff8a72ca5a68ebbc6a..ca9a9e7a95ea78c184783a620b060079d254f718 100644 (file)
@@ -20,7 +20,7 @@ COLLECTD_PLUGINS_DISABLE = \
        nut onewire oracle perl pf pinba powerdns python routeros \
        rrdcached sigrok tape target_v5upgrade teamspeak2 ted \
        tokyotyrant turbostat uuid varnish virt vserver write_kafka \
-       write_mongodb write_redis xencpu xmms zfs_arc zone
+       write_mongodb xencpu xmms zfs_arc zone
 
 COLLECTD_CONF_ENV += LIBS="-lm"
 
@@ -137,6 +137,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_WRITEHTTP),--enable-write_http,--disable-write_http) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITELOG),--enable-write_log,--disable-write_log) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITEPROMETHEUS),--enable-write_prometheus,--disable-write_prometheus) \
+       $(if $(BR2_PACKAGE_COLLECTD_WRITEREDIS),--enable-write_redis,--disable-write_redis) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITESENSU),--enable-write_sensu,--disable-write_sensu) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITETSDB),--enable-write_tsdb,--disable-write_tsdb) \
        $(if $(BR2_PACKAGE_COLLECTD_ZOOKEEPER),--enable-zookeeper,--disable-zookeeper)
@@ -171,7 +172,8 @@ COLLECTD_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_COLLECTD_SMART),libatasmart) \
        $(if $(BR2_PACKAGE_COLLECTD_SNMP),netsnmp) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITEHTTP),libcurl) \
-       $(if $(BR2_PACKAGE_COLLECTD_WRITEPROMETHEUS),libmicrohttpd protobuf-c)
+       $(if $(BR2_PACKAGE_COLLECTD_WRITEPROMETHEUS),libmicrohttpd protobuf-c) \
+       $(if $(BR2_PACKAGE_COLLECTD_WRITEREDIS),hiredis)
 
 # include/library fixups
 ifeq ($(BR2_PACKAGE_LIBCURL),y)