FreeBSD Bugzilla – Attachment 188738 Details for
Bug 224261
[NEW PORT] sysutils/phpfpm_exporter: Export php-fpm metrics in Prometheus format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar file
phpfpm_exporter_0.3.3.shar (text/plain), 3.83 KB, created by
Gasol Wu
on 2017-12-12 02:15:19 UTC
(
hide
)
Description:
shar file
Filename:
MIME Type:
Creator:
Gasol Wu
Created:
2017-12-12 02:15:19 UTC
Size:
3.83 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: ># ># phpfpm_exporter ># phpfpm_exporter/Makefile ># phpfpm_exporter/distinfo ># phpfpm_exporter/files ># phpfpm_exporter/files/phpfpm_exporter.in ># phpfpm_exporter/pkg-descr ># >echo c - phpfpm_exporter >mkdir -p phpfpm_exporter > /dev/null 2>&1 >echo x - phpfpm_exporter/Makefile >sed 's/^X//' >phpfpm_exporter/Makefile << 'END-of-phpfpm_exporter/Makefile' >X# Created by: Gasol Wu <gasol.wu@gmail.com> >X# $FreeBSD$ >X >XPORTNAME= phpfpm_exporter >XPORTVERSION= 0.3.3 >XDISTVERSIONPREFIX=v >XCATEGORIES= sysutils >X >XMAINTAINER= gasol.wu@gmail.com >XCOMMENT= Export php-fpm metrics in Prometheus format >X >XLICENSE= MIT >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSES= go >XUSE_GITHUB= yes >XGH_ACCOUNT= bakins >XGH_PROJECT= php-fpm-exporter >X >XGO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} >XPLIST_FILES= bin/${PORTNAME} >XUSE_RC_SUBR= phpfpm_exporter >X >Xdo-build: >X @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} CGO_ENABLED=0 ${GO_CMD} build -o ${PORTNAME} ./cmd/${GH_PROJECT}) >X >Xdo-install: >X ${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} >X >X.include <bsd.port.mk> >END-of-phpfpm_exporter/Makefile >echo x - phpfpm_exporter/distinfo >sed 's/^X//' >phpfpm_exporter/distinfo << 'END-of-phpfpm_exporter/distinfo' >XTIMESTAMP = 1512723537 >XSHA256 (bakins-php-fpm-exporter-v0.3.3_GH0.tar.gz) = 02b6ee16d3c595430dd875953639daa95e2b41e9f78e1aca45656e9f5e196b4c >XSIZE (bakins-php-fpm-exporter-v0.3.3_GH0.tar.gz) = 1510300 >END-of-phpfpm_exporter/distinfo >echo c - phpfpm_exporter/files >mkdir -p phpfpm_exporter/files > /dev/null 2>&1 >echo x - phpfpm_exporter/files/phpfpm_exporter.in >sed 's/^X//' >phpfpm_exporter/files/phpfpm_exporter.in << 'END-of-phpfpm_exporter/files/phpfpm_exporter.in' >X#!/bin/sh >X >X# PROVIDE: phpfpm_exporter >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# phpfpm_exporter_enable (bool): Set to NO by default. >X# Set it to YES to enable phpfpm_exporter. >X# phpfpm_exporter_user (string): Set user that phpfpm_exporter will run under >X# Default is "nobody". >X# phpfpm_exporter_group (string): Set group that phpfpm_exporter will run under >X# Default is "nobody". >X# phpfpm_exporter_endpoint (string): Set status endpoint >X# Default is "http://127.0.0.1:9000/status". >X# phpfpm_exporter_listen_address (string): Set ip:port that phpfpm_exporter will listen on >X# Default is "127.0.0.1:8080". >X >X. /etc/rc.subr >X >Xname=phpfpm_exporter >Xrcvar=phpfpm_exporter_enable >X >Xload_rc_config $name >X >X: ${phpfpm_exporter_enable:="NO"} >X: ${phpfpm_exporter_user:="nobody"} >X: ${phpfpm_exporter_group:="nobody"} >X: ${phpfpm_exporter_endpoint:="http://127.0.0.1:9000/status"} >X: ${phpfpm_exporter_listen_address:="127.0.0.1:8080"} >X >X >Xpidfile=/var/run/phpfpm_exporter.pid >Xcommand="/usr/sbin/daemon" >Xprocname="%%PREFIX%%/bin/phpfpm_exporter" >Xcommand_args="-p ${pidfile} /usr/bin/env ${procname} \ >X --addr ${phpfpm_exporter_listen_address} \ >X --endpoint ${phpfpm_exporter_endpoint}" >X >Xstart_precmd=phpfpm_exporter_startprecmd >X >Xphpfpm_exporter_startprecmd() >X{ >X if [ ! -e ${pidfile} ]; then >X install -o ${phpfpm_exporter_user} -g ${phpfpm_exporter_group} /dev/null ${pidfile}; >X fi >X} >X >Xload_rc_config $name >Xrun_rc_command "$1" >END-of-phpfpm_exporter/files/phpfpm_exporter.in >echo x - phpfpm_exporter/pkg-descr >sed 's/^X//' >phpfpm_exporter/pkg-descr << 'END-of-phpfpm_exporter/pkg-descr' >XExport php-fpm metrics in Prometheus format. >X >XWWW: https://github.com/bakins/php-fpm-exporter >END-of-phpfpm_exporter/pkg-descr >exit >
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 224261
: 188738 |
188739
|
188740