Bug 212468 - [NEW PORT] net-mgmt/prometheus: Systems monitoring and alerting toolkit
Summary: [NEW PORT] net-mgmt/prometheus: Systems monitoring and alerting toolkit
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: feature, patch
Depends on:
Blocks:
 
Reported: 2016-09-08 00:05 UTC by jevonearth
Modified: 2016-10-16 08:00 UTC (History)
3 users (show)

See Also:
pi: maintainer-feedback+


Attachments
shell archive of new net-mgmt/prometheus port (5.03 KB, application/x-shar)
2016-09-08 00:05 UTC, jevonearth
no flags Details
/usr/ports/UIDs patch for new user called prometheus (289 bytes, patch)
2016-09-08 00:07 UTC, jevonearth
no flags Details | Diff
/usr/ports/GIDs patch for new user called prometheus (225 bytes, patch)
2016-09-08 00:07 UTC, jevonearth
no flags Details | Diff
svn diff patch (7.97 KB, patch)
2016-09-22 21:55 UTC, jevonearth
no flags Details | Diff
Update prometheus patch (7.04 KB, patch)
2016-09-23 18:27 UTC, jevonearth
no flags Details | Diff
new patch for latest prometheus release 1.2.1 (7.04 KB, patch)
2016-10-14 23:27 UTC, jevonearth
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jevonearth 2016-09-08 00:05:22 UTC
Created attachment 174497 [details]
shell archive of new net-mgmt/prometheus port

Port rookie here, any feedback or recommendations will be received graciously.
Comment 1 jevonearth 2016-09-08 00:07:08 UTC
Created attachment 174498 [details]
/usr/ports/UIDs patch for new user called prometheus
Comment 2 jevonearth 2016-09-08 00:07:23 UTC
Created attachment 174499 [details]
/usr/ports/GIDs patch for new user called prometheus
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2016-09-08 09:10:25 UTC
Hi Jev, thanks for giving porting a go :)

The best and most comprehensive way to QA ports prior to submission and review is outlined here:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing.html

In particular and in summary:

- poudriere
- portlint
- /etc/make.conf -> DEVELOPER=yes

Most major issues will be identified through those processes.

Also, unified diffs are acceptable for new ports. In the new port case, this also precludes the need for multiple attachments. Accordingly, feel free to replace the 3 attachments here with a single unified diff (preferably `svn diff`) that includes all of:

- the port files
- the addition of the port to category/Makefile [1]
- UID/GID file additions

[1] See: https://www.freebsd.org/doc/en/articles/committers-guide/ports.html#ports-qa-adding

If you need further help or have questions, you can also join #freebsd-ports on freenode

Have fun!
Comment 4 jevonearth 2016-09-22 21:55:43 UTC
Created attachment 175078 [details]
svn diff patch

This port still fails on `port test`. Attaching the latest version anyway. I have asked for some help on the mailing lists here; https://lists.freebsd.org/pipermail/freebsd-ports/2016-September/104922.html
Comment 5 jevonearth 2016-09-23 18:27:11 UTC
Created attachment 175101 [details]
Update prometheus patch

Passes `poudriere testport`. I think this is good to be committed. :)
Comment 6 jevonearth 2016-10-14 23:27:27 UTC
Created attachment 175767 [details]
new patch for latest prometheus release 1.2.1

Passes poudriere testport on 11.0-RELEASE
Comment 7 jevonearth 2016-10-15 00:22:06 UTC
Passes `poudriere testport` on:

11.0-RELEASE-p1
10.3-RELEASE-p10
9.3-RELEASE
Comment 8 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-15 04:48:21 UTC
testbuilds@work. Please note that the Makefile and distinfo of that patch still say 1.1.3. I've updated the version number to 1.2.1 and ran make makesum to
really use 1.2.1 8-}
Comment 9 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-15 04:59:02 UTC
testbuilds OK
Comment 10 commit-hook freebsd_committer freebsd_triage 2016-10-15 05:09:24 UTC
A commit references this bug:

Author: pi
Date: Sat Oct 15 05:09:12 UTC 2016
New revision: 424001
URL: https://svnweb.freebsd.org/changeset/ports/424001

Log:
  New port: net-mgmt/prometheus

  Prometheus is a systems and service monitoring system. It collects metrics
  from configured targets at given intervals, evaluates rule expressions,
  displays the results, and can trigger alerts if some condition is observed
  to be true.

  Prometheus' main distinguishing features as compared to other monitoring
  systems are:

  - a multi-dimensional data model (timeseries defined by metric name and
    set of key/value dimensions)
  - a flexible query language to leverage this dimensionality
  - no dependency on distributed storage; single server nodes are autonomous
  - timeseries collection happens via a pull model over HTTP
  - pushing timeseries is supported via an intermediary gateway
  - targets are discovered via service discovery or static configuration
  - multiple modes of graphing and dashboarding support
  - support for hierarchical and horizontal federation

  WWW: https://prometheus.io/

  PR:		212468
  Submitted by:	Jev Bjoersell <jev@ecadlabs.com>

Changes:
  head/GIDs
  head/UIDs
  head/net-mgmt/Makefile
  head/net-mgmt/prometheus/
  head/net-mgmt/prometheus/Makefile
  head/net-mgmt/prometheus/distinfo
  head/net-mgmt/prometheus/files/
  head/net-mgmt/prometheus/files/prometheus.in
  head/net-mgmt/prometheus/pkg-descr
Comment 11 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-15 05:09:25 UTC
Committed, thanks!
Comment 12 jevonearth 2016-10-15 09:44:26 UTC
Thank you Kurt! I realize I attached a stale patch, hence you saw the 1.1.3 references. Lesson learned for me, I will be more careful next time.
Comment 13 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-16 07:59:57 UTC
Please note that an issue existed for this port in bug 210059
Comment 14 Kubilay Kocak freebsd_committer freebsd_triage 2016-10-16 08:00:42 UTC
Not sure how I missed it myself :|