collectd: add write_prometheus plugin

This commit is contained in:
Felix Hanley 2020-04-21 22:53:05 +10:00 committed by Érico Nogueira Rolim
parent d1d6e9f4c8
commit ecc4214f36

View file

@ -6,13 +6,16 @@ build_style=gnu-configure
configure_args="$(vopt_enable rrdtool rrdtool) $(vopt_enable perl perl)
$(vopt_enable notify notify_desktop) --with-libiptc --enable-virt
--sysconfdir=/etc --disable-static --with-fp-layout=nothing
--with-python=/bin/python3 --disable-werror"
--with-python=/bin/python3 --disable-werror
$(vopt_with prometheus "libmicrohttpd protobuf-c")
$(vopt_enable prometheus write_prometheus)"
conf_files="/etc/collectd.conf"
hostmakedepends="automake pkg-config libtool libltdl-devel glib-devel"
makedepends="libcurl-devel iptables-devel libressl-devel libsensors-devel
libesmtp-devel zlib-devel yajl-devel python3-devel libxml2-devel net-snmp-devel
libgcrypt-devel libmysqlclient-devel libltdl-devel libvirt-devel
$(vopt_if notify libnotify-devel) $(vopt_if rrdtool rrdtool-devel)"
$(vopt_if notify libnotify-devel) $(vopt_if rrdtool rrdtool-devel)
$(vopt_if prometheus 'protobuf-c-devel libmicrohttpd-devel')"
short_desc="Daemon which collects system performance statistics periodically"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2.0-only, MIT"
@ -21,8 +24,9 @@ distfiles="https://collectd.org/files/${pkgname}-${version}.tar.bz2"
checksum=37b10a806e34aa8570c1cafa6006c604796fae13cc2e1b3e630d33dcba9e5db2
LDFLAGS="-lgcrypt"
build_options="rrdtool perl notify"
build_options="rrdtool perl notify prometheus"
desc_option_rrdtool="Enable support for RRDTool"
desc_option_prometheus="Enable write_prometheus plugin"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="rrdtool perl"