diff --git net-mgmt/collectd5/Makefile net-mgmt/collectd5/Makefile index b21f33b9cb65..398a63e07f12 100644 --- net-mgmt/collectd5/Makefile +++ net-mgmt/collectd5/Makefile @@ -19,8 +19,8 @@ GNU_CONFIGURE= yes OPTIONS_DEFINE= CGI JAVA LOGGING GCRYPT LOGSTASH VIRT OPTIONS_GROUP= INPUT OUTPUT -OPTIONS_GROUP_OUTPUT= KAFKA MONGODB NOTIFYDESKTOP NOTIFYEMAIL RIEMANN RRDTOOL \ - TSDB +OPTIONS_GROUP_OUTPUT= KAFKA MONGODB NOTIFYDESKTOP NOTIFYEMAIL PROMETHEUS RIEMANN \ + RRDTOOL TSDB OPTIONS_GROUP_INPUT= CHRONY CURL CURL_JSON CURL_XML DBI IPMI JSON \ MEMCACHEC MODBUS MQTT MYSQL NUTUPS OLSRD ONEWIRE OPENLDAP \ PERL PGSQL PINBA PING PYTHON RABBITMQ REDIS ROUTEROS \ @@ -56,6 +56,7 @@ PERL_DESC= Enable libperl plugin and binding PGSQL_DESC= Enable postgresql-based plugins PINBA_DESC= Enable pinba plugin (via protobuf-c) PING_DESC= Enable ping plugin +PROMETHEUS_DESC= Enable write prometheus plugin PYTHON_DESC= Enable python-based plugins RABBITMQ_DESC= Enable rabbitmq-based plugins REDIS_DESC= Enable redis-based plugins @@ -215,6 +216,11 @@ PING_LIB_DEPENDS= liboping.so:net/liboping PING_CONFIGURE_ENABLE= ping PING_CONFIGURE_WITH= liboping=${LOCALBASE} +PROMETHEUS_LIB_DEPENDS= libprotobuf-c.so:devel/protobuf-c +PROMETHEUS_LIB_DEPENDS+= libprotoc.so:devel/protobuf +PROMETHEUS_LIB_DEPENDS+= libmicrohttpd.so:www/libmicrohttpd +PROMETHEUS_CONFIGURE_ENABLE= write_prometheus + PYTHON_USES= python PYTHON_CONFIGURE_ENABLE= python PYTHON_CONFIGURE_WITH= python=${PYTHON_CMD} diff --git net-mgmt/collectd5/pkg-plist net-mgmt/collectd5/pkg-plist index 76aa1c0dbd41..0282137f943b 100644 --- net-mgmt/collectd5/pkg-plist +++ net-mgmt/collectd5/pkg-plist @@ -104,6 +104,7 @@ lib/collectd/write_graphite.so lib/collectd/write_log.so %%KAFKA%%lib/collectd/write_kafka.so %%MONGODB%%lib/collectd/write_mongodb.so +%%PROMETHEUS%%lib/collectd/write_prometheus.so %%REDIS%%lib/collectd/write_redis.so %%RIEMANN%%lib/collectd/write_riemann.so %%TSDB%%lib/collectd/write_tsdb.so