Created attachment 177189 [details] The port. An exporter for collectd. It accepts collectd's binary network protocol as sent by collectd's network plugin and metrics in JSON format via HTTP POST as sent by collectd's write_http plugin, and transforms and exposes them for consumption by Prometheus.
Hi, Some unsolicited notes, to help out a little, I ran this new port through poudriere testport, results are; 10.3-RELEASE-p12 amd64 pass 11.0-RELEASE-p3 amd64 pass 9.3-RELEASE-p50 amd64 pass @dsp@php.net running portlint on your new port generates two warnings, one (COMMENT should begin with a capital) is trivial to fix. The FreeBSD ports folk then to prefer patch files generated using `svn diff` these days (porters handbook should probably be updated, but that's another matter). I typically add the new port to svn local working directory and then run: sudo svn diff | sudo tee ../`make -VPKGNAME`.diff from the directory of the port you are contributing. I did not perform any functional testing on the port, but I did notice that there is not rc script included. Hope this is helpful, Jev
Thanks Jev for taking a look. I am happy to provide the changes and an svn diff. Let me work on that on the weekend.
Committed, thanks. Sorry for the delay...
A commit references this bug: Author: pi Date: Fri Jan 12 11:45:30 UTC 2018 New revision: 458819 URL: https://svnweb.freebsd.org/changeset/ports/458819 Log: New port: net-mgmt/prometheus-collectd-exporter An exporter for collectd. It accepts collectd's binary network protocol as sent by collectd's network plugins and metrics in JSON format via HTTP POST as sent by colletd's write_http_plugin, and transform and exposes them for consumption by Prometheus. WWW: https://github.com/prometheus/collectd_exporter PR: 214675 Submitted by: dsp@php.net Changes: head/net-mgmt/Makefile head/net-mgmt/prometheus-collectd-exporter/ head/net-mgmt/prometheus-collectd-exporter/Makefile head/net-mgmt/prometheus-collectd-exporter/distinfo head/net-mgmt/prometheus-collectd-exporter/pkg-descr