Bug 214675 - [NEW PORT] net-mgmt/prometheus-collectd-exporter: Prometheus collectd exporter
Summary: [NEW PORT] net-mgmt/prometheus-collectd-exporter: Prometheus collectd exporter
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-19 22:01 UTC by dsp
Modified: 2018-01-12 11:45 UTC (History)
2 users (show)

See Also:


Attachments
The port. (2.02 KB, text/plain)
2016-11-19 22:01 UTC, dsp
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dsp 2016-11-19 22:01:32 UTC
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.
Comment 1 jevonearth 2016-11-29 19:16:55 UTC
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
Comment 2 dsp 2016-11-30 16:53:58 UTC
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.
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2018-01-12 11:45:34 UTC
Committed, thanks. Sorry for the delay...
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-01-12 11:45:38 UTC
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