FreeBSD Bugzilla – Attachment 175808 Details for
Bug 210059
[NEW PORT] net-mgmt/prometheus: Monitoring system and time series database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for prometheus 1.2.0 port
prometheus.patch (text/plain), 4.61 KB, created by
Andy Carrel
on 2016-10-16 00:44:53 UTC
(
hide
)
Description:
Patch for prometheus 1.2.0 port
Filename:
MIME Type:
Creator:
Andy Carrel
Created:
2016-10-16 00:44:53 UTC
Size:
4.61 KB
patch
obsolete
>diff -r e9856d9e403b -r 2e1449742288 GIDs >--- a/GIDs Sat Oct 15 15:49:29 2016 +0000 >+++ b/GIDs Sun Oct 16 00:05:17 2016 +0000 >@@ -730,7 +730,7 @@ > # free: 786 > # free: 787 > # free: 788 >-# free: 789 >+prometheus:*:789: > # free: 790 > # free: 791 > # free: 792 >diff -r e9856d9e403b -r 2e1449742288 UIDs >--- a/UIDs Sat Oct 15 15:49:29 2016 +0000 >+++ b/UIDs Sun Oct 16 00:05:17 2016 +0000 >@@ -735,7 +735,7 @@ > # free: 786 > # free: 787 > # free: 788 >-# free: 789 >+prometheus:*:789:789::0:0:Prometheus Daemon:/nonexistent:/usr/sbin/nologin > # free: 790 > # free: 791 > # free: 792 >diff -r e9856d9e403b -r 2e1449742288 sysutils/Makefile >--- a/sysutils/Makefile Sat Oct 15 15:49:29 2016 +0000 >+++ b/sysutils/Makefile Sun Oct 16 00:05:17 2016 +0000 >@@ -813,6 +813,7 @@ > SUBDIR += procenv > SUBDIR += procmap > SUBDIR += progsreiserfs >+ SUBDIR += prometheus > SUBDIR += pslist > SUBDIR += psmisc > SUBDIR += pstack >diff -r e9856d9e403b -r 2e1449742288 sysutils/prometheus/Makefile >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/prometheus/Makefile Sun Oct 16 00:05:17 2016 +0000 >@@ -0,0 +1,37 @@ >+# Created by: William Carrel <wac@google.com> >+# $FreeBSD$ >+ >+PORTNAME= prometheus >+PORTVERSION= 1.2.1 >+CATEGORIES= sysutils >+ >+MAINTAINER= wac@google.com >+COMMENT= Distributed Monitoring system and time series database >+ >+LICENSE= APACHE20 >+ >+LOCALDBDIR= /var/db/prometheus >+ >+USES= go >+USE_GITHUB= yes >+ >+GH_ACCOUNT= prometheus >+GH_TAGNAME= v${PORTVERSION} >+ >+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >+GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}/cmd/prometheus >+ >+USERS= prometheus >+GROUPS= prometheus >+ >+USE_RC_SUBR= prometheus >+ >+STRIP= # stripping can break go binaries >+ >+do-install: >+ ${CP} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/documentation/examples/prometheus.yml ${STAGEDIR}${PREFIX}/etc/prometheus.conf.sample >+ ${INSTALL_PROGRAM} ${WRKDIR}/bin/prometheus ${STAGEDIR}${PREFIX}/bin >+ ${MKDIR} ${STAGEDIR}${LOCALDBDIR} >+ -${CHOWN} -Rh ${USERS}:${GROUPS} ${STAGEDIR}${LOCALDBDIR} >+ >+.include <bsd.port.mk> >diff -r e9856d9e403b -r 2e1449742288 sysutils/prometheus/distinfo >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/prometheus/distinfo Sun Oct 16 00:05:17 2016 +0000 >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1476559673 >+SHA256 (prometheus-prometheus-1.2.1-v1.2.1_GH0.tar.gz) = d94b0904fde618ab1c9a2e1bec98da00bb9a29faf621db55dfa313346526f91a >+SIZE (prometheus-prometheus-1.2.1-v1.2.1_GH0.tar.gz) = 2638657 >diff -r e9856d9e403b -r 2e1449742288 sysutils/prometheus/files/prometheus.in >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/prometheus/files/prometheus.in Sun Oct 16 00:05:17 2016 +0000 >@@ -0,0 +1,34 @@ >+#!/bin/sh >+# $FreeBSD$ >+ >+# PROVIDE: prometheus >+# REQUIRE: DAEMON NETWORKING >+# BEFORE: LOGIN >+# KEYWORD: shutdown >+ >+# Add the following line to /etc/rc.conf to enable prometheus: >+# prometheus_enable="YES" >+ >+. /etc/rc.subr >+ >+name="prometheus" >+rcvar="${name}_enable" >+extra_commands="reload" >+ >+load_rc_config $name >+ >+: ${prometheus_enable:="NO"} >+: ${prometheus_user:="${name}"} >+: ${prometheus_group:="${name}"} >+: ${prometheus_config:="%%PREFIX%%/etc/${name}.conf"} >+: ${prometheus_args:="-log.format=logger:syslog\?appname=${name}\&local=7"} >+: ${prometheus_datadir:="/var/db/${name}"} >+ >+required_files="${prometheus_config}" >+ >+pidfile="/var/run/${name}.pid" >+procname="%%PREFIX%%/bin/${name}" >+ >+start_cmd="/usr/sbin/daemon -c -f -u ${prometheus_user} -p ${pidfile} ${procname} ${prometheus_args} -config.file=${prometheus_config} -storage.local.path=${prometheus_datadir}" >+ >+run_rc_command "$1" >diff -r e9856d9e403b -r 2e1449742288 sysutils/prometheus/pkg-descr >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/prometheus/pkg-descr Sun Oct 16 00:05:17 2016 +0000 >@@ -0,0 +1,14 @@ >+Prometheus is an open-source systems monitoring and alerting toolkit >+originally built at SoundCloud. >+ >+Prometheus's main features are: >+- a multi-dimensional data model (time series identified by metric name >+ and key/value pairs) >+- a flexible query language to leverage this dimensionality >+- no reliance on distributed storage; single server nodes are autonomous >+- time series collection happens via a pull model over HTTP >+- pushing time series is supported via an intermediary gateway >+- targets are discovered via service discovery or static configuration >+- multiple modes of graphing and dashboarding support >+ >+WWW: https://prometheus.io/ >diff -r e9856d9e403b -r 2e1449742288 sysutils/prometheus/pkg-plist >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/prometheus/pkg-plist Sun Oct 16 00:05:17 2016 +0000 >@@ -0,0 +1,3 @@ >+bin/prometheus >+@dir(prometheus,prometheus) /var/db/prometheus >+@sample etc/prometheus.conf.sample
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210059
:
171068
|
175671
|
175808
|
175831
|
175872