package/collectd: add InfluxDB support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 15 Apr 2020 06:30:06 +0000 (08:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 17 Aug 2020 10:15:57 +0000 (12:15 +0200)
InfluxDB support is available since version 5.11.0 and
https://github.com/collectd/collectd/commit/605fcdcddeefb23b945203079e5c87625ce0e336

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/collectd/Config.in
package/collectd/collectd.mk

index a467a8a4ca384c289ccc8049a215f299097c487a..e3e3c5401ff2982b634489506994a3820907915f 100644 (file)
@@ -644,6 +644,12 @@ config BR2_PACKAGE_COLLECTD_WRITEHTTP
          Sends values collected to a web-server using HTTP POST and
          PUTVAL.
 
+config BR2_PACKAGE_COLLECTD_WRITEINFLUXDBUDP
+       bool "write_influxdb_udp"
+       help
+         Sends data to an instance of InfluxDB using the "Line
+         Protocol".
+
 config BR2_PACKAGE_COLLECTD_WRITELOG
        bool "write_log"
        help
index ad16c729120e06defa04342db5831f747e203c67..ad79e1cb0b00cfaea6b0ff978505e7a2b0fc75ac 100644 (file)
@@ -140,6 +140,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_VMEM),--enable-vmem,--disable-vmem) \
        $(if $(BR2_PACKAGE_COLLECTD_WIRELESS),--enable-wireless,--disable-wireless) \
        $(if $(BR2_PACKAGE_COLLECTD_WRITEHTTP),--enable-write_http,--disable-write_http) \
+       $(if $(BR2_PACKAGE_COLLECTD_WRITEINFLUXDBUDP),--enable-write_influxdb_udp,--disable-write_influxdb_udp) \
        $(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) \