FreeBSD Bugzilla – Attachment 179705 Details for
Bug 216882
New port: net-mgmt/pushgateway Prometheus push acceptor for ephemeral and batch jobs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Correct shar, previous one was erroneous
pushgateway.shar (text/plain), 4.60 KB, created by
Athanasios Douitsis
on 2017-02-07 13:38:14 UTC
(
hide
)
Description:
Correct shar, previous one was erroneous
Filename:
MIME Type:
Creator:
Athanasios Douitsis
Created:
2017-02-07 13:38:14 UTC
Size:
4.60 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># pushgateway/Makefile ># pushgateway/distinfo ># pushgateway/files ># pushgateway/pkg-descr ># pushgateway/pkg-plist ># pushgateway/files/pushgateway.in ># >echo x - pushgateway/Makefile >sed 's/^X//' >pushgateway/Makefile << '8636510492e0f04dfde0ba4353c9b938' >X# Created by: Athanasios Douitsis <aduitsis@cpan.org> >X# $FreeBSD$ >X >XPORTNAME= pushgateway >XPORTVERSION= 0.3.1 >XDISTVERSIONPREFIX= v >XCATEGORIES= net-mgmt >X >XMAINTAINER= aduitsis@cpan.org >XCOMMENT= Prometheus push acceptor for ephemeral and batch jobs >X >XLICENSE= APACHE20 >X >XUSES= go gmake >XGH_ACCOUNT= prometheus >XUSE_GITHUB= yes >X >XGO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >X >XUSE_RC_SUBR= pushgateway >X >XUSERS= prometheus >XGROUPS= prometheus >X >XSTRIP= # stripping can break go binaries >X >Xdo-build: >X (cd ${GO_WRKSRC} ; ${SETENV} ${GO_ENV} go install) >X >Xdo-install: >X ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/pushgateway ${STAGEDIR}${PREFIX}/bin >X ${MKDIR} ${STAGEDIR}${DESTDIR}/var/db/${PORTNAME} >X >X.include <bsd.port.mk> >8636510492e0f04dfde0ba4353c9b938 >echo x - pushgateway/distinfo >sed 's/^X//' >pushgateway/distinfo << '701eca8d8f3133baaa16b58ebf701a19' >XTIMESTAMP = 1486461319 >XSHA256 (prometheus-pushgateway-v0.3.1_GH0.tar.gz) = 6b0fffd0ffd05babbcfd8838027e4bad8ee4d91aeaca705aa83d7ddf1f8bb6c6 >XSIZE (prometheus-pushgateway-v0.3.1_GH0.tar.gz) = 1140371 >701eca8d8f3133baaa16b58ebf701a19 >echo c - pushgateway/files >mkdir -p pushgateway/files > /dev/null 2>&1 >echo x - pushgateway/pkg-descr >sed 's/^X//' >pushgateway/pkg-descr << '6cecca393567829fcefee980a4366dac' >XThe Prometheus Pushgateway exists to allow ephemeral and batch jobs to >Xexpose their metrics to Prometheus. Since these kinds of jobs may not >Xexist long enough to be scraped, they can instead push their metrics to >Xa Pushgateway. The Pushgateway then exposes these metrics to Prometheus. >X >XWWW: https://github.com/prometheus/pushgateway >6cecca393567829fcefee980a4366dac >echo x - pushgateway/pkg-plist >sed 's/^X//' >pushgateway/pkg-plist << 'e5ea5ccfbb2fd326a36c77dba3103416' >Xbin/pushgateway >X@dir(prometheus,prometheus) /var/db/pushgateway >e5ea5ccfbb2fd326a36c77dba3103416 >echo x - pushgateway/files/pushgateway.in >sed 's/^X//' >pushgateway/files/pushgateway.in << 'b08e656891eae8c4b1f84d64dc58dcbc' >X#!/bin/sh >X# >X# $FreeBSD$ >X >X# PROVIDE: pushgateway >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# pushgateway_enable (bool): Set to NO by default >X# Set it to YES to enable pushgateway >X# pushgateway_user (string): Set user to run pushgateway >X# Default is "prometheus" >X# pushgateway_group (string): Set group to run pushgateway >X# Default is "prometheus" >X# pushgateway_data_dir (string): Set dir to run pushgateway in >X# Default is "/var/db/pushgateway" >X# pushgateway_persistence_file (string): Set file in which the pushed >X# metrics will be persisted >X# Default is "${pushgateway_data_dir}/persistent.data" >X# pushgateway_log_file (string): Set file that pushgateway will log to >X# Default is "/var/log/pushgateway.log" >X# pushgateway_args (string): Set additional command line arguments >X# Default is "" >X >X. /etc/rc.subr >X >Xname=pushgateway >Xrcvar=pushgateway_enable >Xdesc=Prometheus pushgateway service >X >Xload_rc_config $name >X >X: ${pushgateway_enable:=NO} >X: ${pushgateway_user:=prometheus} >X: ${pushgateway_group:=prometheus} >X: ${pushgateway_data_dir=/var/db/pushgateway} >X: ${pushgateway_persistence_file=${pushgateway_data_dir}/persistent.data} >X: ${pushgateway_log_file=/var/log/pushgateway.log} >X >Xpidfile=/var/run/pushgateway.pid >Xcommand=/usr/sbin/daemon >Xprocname="%%PREFIX%%/bin/pushgateway" >Xsig_reload=HUP >Xextra_commands=reload >Xcommand_args="-p ${pidfile} /usr/bin/env ${procname} \ >X -persistence.file=${pushgateway_persistence_file} \ >X ${pushgateway_args} > ${pushgateway_log_file} 2>&1" >X >Xstart_precmd=pushgateway_startprecmd >X >Xpushgateway_startprecmd() >X{ >X if [ ! -e ${pidfile} ]; then >X install -o ${pushgateway_user} -g ${pushgateway_group} /dev/null ${pidfile}; >X fi >X if [ ! -f "${pushgateway_log_file}" ]; then >X install -o ${pushgateway_user} -g ${pushgateway_group} -m 640 /dev/null ${pushgateway_log_file}; >X fi >X if [ ! -d ${pushgateway_data_dir} ]; then >X install -d -o ${pushgateway_user} -g ${pushgateway_group} -m 750 ${pushgateway_data_dir} >X fi >X} >X >Xrun_rc_command "$1" >b0
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 Raw
Actions:
View
Attachments on
bug 216882
:
179704
|
179705
|
179706
|
179708