FreeBSD Bugzilla – Attachment 226203 Details for
Bug 256963
[new port] net/haproxy_exporter: Prometheus exporter for haproxy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Version 0.12.0
haproxy_exporter.diff (text/plain), 5.76 KB, created by
Volodymyr Kostyrko
on 2021-07-04 02:29:26 UTC
(
hide
)
Description:
Version 0.12.0
Filename:
MIME Type:
Creator:
Volodymyr Kostyrko
Created:
2021-07-04 02:29:26 UTC
Size:
5.76 KB
patch
obsolete
>diff -urN ./Makefile ./Makefile >--- ./Makefile 1970-01-01 03:00:00.000000000 +0300 >+++ ./Makefile 2021-06-01 22:04:25.820134000 +0300 >@@ -0,0 +1,33 @@ >+# Created by: Jev Björsell <ports@ecadlabs.com> >+ >+PORTNAME= haproxy_exporter >+PORTVERSION= 0.12.0 >+DISTVERSIONPREFIX=v >+CATEGORIES= net >+ >+MAINTAINER= arcade@b1t.name >+COMMENT= Prometheus exporter for haproxy >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+USES= gmake go:modules shebangfix >+USE_GITHUB= yes >+GH_ACCOUNT= prometheus >+USE_RC_SUBR= haproxy_exporter >+ >+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >+GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}" >+ >+BUILD_USER?= ${USER} >+LD_FLAG_STRING= -s \ >+ ${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \ >+ ${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \ >+ ${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \ >+ ${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER} >+LD_FLAG_X_PREFIX= -X ${GO_PKGNAME:H}/common/version >+ >+# This Makefile includes the GH_TUPLE section. >+.include "Makefile.modules" >+ >+.include <bsd.port.mk> >diff -urN ./Makefile.modules ./Makefile.modules >--- ./Makefile.modules 1970-01-01 03:00:00.000000000 +0300 >+++ ./Makefile.modules 2021-06-01 21:56:25.445226000 +0300 >@@ -0,0 +1,8 @@ >+GH_TUPLE= \ >+ alecthomas:units:ff826a37aa15:alecthomas_units/vendor/github.com/alecthomas/units \ >+ go-kit:kit:v0.10.0:go_kit_kit/vendor/github.com/go-kit/kit \ >+ prometheus:client_golang:v1.9.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ >+ prometheus:common:v0.18.0:prometheus_common/vendor/github.com/prometheus/common \ >+ prometheus:exporter-toolkit:v0.5.1:prometheus_exporter_toolkit/vendor/github.com/prometheus/exporter-toolkit \ >+ protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \ >+ alecthomas:kingpin:v2.2.6:alecthomas_kingpin/vendor/gopkg.in/alecthomas/kingpin.v2 >diff -urN ./distinfo ./distinfo >--- ./distinfo 1970-01-01 03:00:00.000000000 +0300 >+++ ./distinfo 2021-06-01 21:57:01.737948000 +0300 >@@ -0,0 +1,17 @@ >+TIMESTAMP = 1622573821 >+SHA256 (prometheus-haproxy_exporter-v0.12.0_GH0.tar.gz) = 86df7ae6c1eac94a1f2a3d0d0e15e1490c420c2ab0d4614354a9fd2058af4092 >+SIZE (prometheus-haproxy_exporter-v0.12.0_GH0.tar.gz) = 1484092 >+SHA256 (alecthomas-units-ff826a37aa15_GH0.tar.gz) = 7dcb75a984e2af8f0dd14d91c398f2d42df19fa962aa78113502d741c7bc32e6 >+SIZE (alecthomas-units-ff826a37aa15_GH0.tar.gz) = 5046 >+SHA256 (go-kit-kit-v0.10.0_GH0.tar.gz) = c0fac2e37b981e4c18e4f210b92e1393bd59dadd7c7fc043ec46d1c9834eba85 >+SIZE (go-kit-kit-v0.10.0_GH0.tar.gz) = 274801 >+SHA256 (prometheus-client_golang-v1.9.0_GH0.tar.gz) = 92ccfb35268ce2de6beeb45d4b5639e4bce78111b8629bcde5727165f7e1afb1 >+SIZE (prometheus-client_golang-v1.9.0_GH0.tar.gz) = 177330 >+SHA256 (prometheus-common-v0.18.0_GH0.tar.gz) = 64b0963add6f1945d8da40452d9bf796db263e4d8aba26cf17fdcc3f76b8f940 >+SIZE (prometheus-common-v0.18.0_GH0.tar.gz) = 123693 >+SHA256 (prometheus-exporter-toolkit-v0.5.1_GH0.tar.gz) = 721740ad90ac0d32e51c94d05b67a276cbed2c138e9af16587f98e8664750220 >+SIZE (prometheus-exporter-toolkit-v0.5.1_GH0.tar.gz) = 50475 >+SHA256 (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = c1c04d6e36c0d0fb6f3374197f9025d7e6df13f38a974098be020617c00fbaf2 >+SIZE (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = 1258804 >+SHA256 (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 4624eae43489de8a71ea60efaf6744c581b6bd62909f7514c484c1ea0efaba5a >+SIZE (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 44383 >diff -urN ./files/haproxy_exporter.in ./files/haproxy_exporter.in >--- ./files/haproxy_exporter.in 1970-01-01 03:00:00.000000000 +0300 >+++ ./files/haproxy_exporter.in 2021-06-01 22:00:46.568814000 +0300 >@@ -0,0 +1,56 @@ >+#!/bin/sh >+ >+# PROVIDE: haproxy_exporter >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# haproxy_exporter_enable (bool): Set to NO by default. >+# Set it to YES to enable haproxy_exporter. >+# haproxy_exporter_user (string): Set user that haproxy_exporter will run under >+# Default is "nobody". >+# haproxy_exporter_group (string): Set group that haproxy_exporter will run under >+# Default is "nobody". >+# haproxy_exporter_args (string): Set extra arguments to pass to haproxy_exporter >+# Default is "". >+# haproxy_exporter_listen_address (string):Set ip:port that haproxy_exporter will listen on >+# Default is ":9101". >+ >+. /etc/rc.subr >+ >+name=haproxy_exporter >+rcvar=haproxy_exporter_enable >+ >+load_rc_config $name >+ >+: ${haproxy_exporter_enable:="NO"} >+: ${haproxy_exporter_user:="nobody"} >+: ${haproxy_exporter_group:="nobody"} >+: ${haproxy_exporter_args:=""} >+: ${haproxy_exporter_listen_address:=":9101"} >+ >+ >+pidfile=/var/run/haproxy_exporter.pid >+command="/usr/sbin/daemon" >+procname="%%PREFIX%%/bin/haproxy_exporter" >+command_args="-f -p ${pidfile} -T ${name} \ >+ /usr/bin/env ${procname} \ >+ --web.listen-address=${haproxy_exporter_listen_address} \ >+ ${haproxy_exporter_args}" >+ >+start_precmd=haproxy_exporter_startprecmd >+ >+haproxy_exporter_startprecmd() >+{ >+ if [ ! -e ${pidfile} ]; then >+ install \ >+ -o ${haproxy_exporter_user} \ >+ -g ${haproxy_exporter_group} \ >+ /dev/null ${pidfile}; >+ fi >+} >+ >+load_rc_config $name >+run_rc_command "$1" >diff -urN ./pkg-descr ./pkg-descr >--- ./pkg-descr 1970-01-01 03:00:00.000000000 +0300 >+++ ./pkg-descr 2021-06-01 22:06:02.332445000 +0300 >@@ -0,0 +1,4 @@ >+This is a simple server that scrapes HAProxy stats and exports them via HTTP for >+Prometheus consumption. >+ >+WWW: https://github.com/prometheus/haproxy_exporter >diff -urN ./pkg-plist ./pkg-plist >--- ./pkg-plist 1970-01-01 03:00:00.000000000 +0300 >+++ ./pkg-plist 2021-06-01 22:03:14.492881000 +0300 >@@ -0,0 +1,2 @@ >+bin/haproxy_exporter >+etc/rc.d/haproxy_exporter
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 256963
: 226203