FreeBSD Bugzilla – Attachment 174556 Details for
Bug 212467
[new port] sysutils/node_exporter Prometheus exporter for machine metrics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch file with some improvements.
node_exporter.diff (text/plain), 5.25 KB, created by
jevonearth
on 2016-09-08 23:26:34 UTC
(
hide
)
Description:
New patch file with some improvements.
Filename:
MIME Type:
Creator:
jevonearth
Created:
2016-09-08 23:26:34 UTC
Size:
5.25 KB
patch
obsolete
>Index: sysutils/node_exporter/Makefile >=================================================================== >--- sysutils/node_exporter/Makefile (nonexistent) >+++ sysutils/node_exporter/Makefile (working copy) >@@ -0,0 +1,31 @@ >+# Created by: Jev Björsell <ports@ecadlabs.com> >+# $FreeBSD$ >+ >+PORTNAME= node_exporter >+PORTVERSION= 0.12.0 >+# DISTVERSIONPREFIX= v >+CATEGORIES= sysutils >+ >+MAINTAINER= ports@ecadlabs.com >+COMMENT= Prometheus exporter for machine metrics >+ >+LICENSE= APACHE20 >+ >+USES= go gmake >+USE_GITHUB= yes >+ >+GH_ACCOUNT= prometheus >+ >+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >+GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME} >+ >+PLIST_FILES= bin/node_exporter >+ >+USE_RC_SUBR= node_exporter >+ >+STRIP= # stripping can break go binaries >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKDIR}/bin/node_exporter ${STAGEDIR}${PREFIX}/bin >+ >+.include <bsd.port.mk> > >Property changes on: sysutils/node_exporter/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: sysutils/node_exporter/distinfo >=================================================================== >--- sysutils/node_exporter/distinfo (nonexistent) >+++ sysutils/node_exporter/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1473276147 >+SHA256 (prometheus-node_exporter-0.12.0_GH0.tar.gz) = 75e522aa29ec9bd0ea400517d1d556f1e5d0dfc9bc02d9406a1c6c426c80a508 >+SIZE (prometheus-node_exporter-0.12.0_GH0.tar.gz) = 735286 > >Property changes on: sysutils/node_exporter/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: sysutils/node_exporter/files/node_exporter.in >=================================================================== >--- sysutils/node_exporter/files/node_exporter.in (nonexistent) >+++ sysutils/node_exporter/files/node_exporter.in (working copy) >@@ -0,0 +1,59 @@ >+#!/bin/sh >+ >+# PROVIDE: node_exporter >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# node_exporter_enable (bool): Set to NO by default. >+# Set it to YES to enable node_exporter. >+# node_exporter_user (string): Set user that node_exporter will run under >+# Default is "nobody". >+# node_exporter_group (string): Set group that node_exporter will run under >+# Default is "nobody". >+# node_exporter_args (string): Set extra arguments to pass to node_exporter >+# Default is "". >+# node_exporter_listen_address (string):Set ip:port that node_exporter will listen on >+# Default is ":9100". >+# node_exporter_textfile_dir (string): Set directory that node_exporter will watch >+# Default is "/var/tmp/node_exporter". >+ >+. /etc/rc.subr >+ >+name=node_exporter >+rcvar=node_exporter_enable >+ >+load_rc_config $name >+ >+: ${node_exporter_enable:="NO"} >+: ${node_exporter_user:="nobody"} >+: ${node_exporter_group:="nobody"} >+: ${node_exporter_args:=""} >+: ${node_exporter_listen_address:=":9100"} >+: ${node_exporter_textfile_dir:="/var/tmp/node_exporter"} >+ >+ >+pidfile=/var/run/node_exporter.pid >+command="/usr/sbin/daemon" >+procname="%%PREFIX%%/bin/node_exporter" >+command_args="-p ${pidfile} /usr/bin/env ${procname} \ >+ -web.listen-address=${node_exporter_listen_address} \ >+ -collector.textfile.directory=${node_exporter_textfile_dir} \ >+ ${node_exporter_args}" >+ >+start_precmd=node_exporter_startprecmd >+ >+node_exporter_startprecmd() >+{ >+ if [ ! -e ${pidfile} ]; then >+ install -o ${node_exporter_user} -g ${node_exporter_group} /dev/null ${pidfile}; >+ fi >+ if [ ! -d ${node_exporter_textfile_dir} ]; then >+ install -d -o ${node_exporter_user} -g ${node_exporter_group} -m 1755 ${node_exporter_textfile_dir} >+ fi >+} >+ >+load_rc_config $name >+run_rc_command "$1" > >Property changes on: sysutils/node_exporter/files/node_exporter.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: sysutils/node_exporter/pkg-descr >=================================================================== >--- sysutils/node_exporter/pkg-descr (nonexistent) >+++ sysutils/node_exporter/pkg-descr (working copy) >@@ -0,0 +1,4 @@ >+node_exporter is a prometheus exporter for machine metrics, written in Go >+with pluggable metric collectors. >+ >+WWW: https://github.com/prometheus/node_exporter > >Property changes on: sysutils/node_exporter/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 212467
:
174496
|
174556
|
175079