summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2019-01-14 17:57:23 -0600
committerWilliam Hubbs <williamh@gentoo.org>2019-01-14 17:58:49 -0600
commit206c8ece17f3205f82b897bccf40136c717d8875 (patch)
treea51591ce16eea490f9559b8536eccead3ce0d3b3 /app-metrics
parentapp-office/scribus: 1.5.5_pre20190113 snapshot, build w/ poppler-0.73 (diff)
downloadgentoo-206c8ece17f3205f82b897bccf40136c717d8875.tar.gz
gentoo-206c8ece17f3205f82b897bccf40136c717d8875.tar.bz2
gentoo-206c8ece17f3205f82b897bccf40136c717d8875.zip
app-metrics/rabbitmq_exporter: Rabbitmq exporter for Prometheus
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/rabbitmq_exporter/Manifest12
-rw-r--r--app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.confd6
-rw-r--r--app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.initd79
-rw-r--r--app-metrics/rabbitmq_exporter/metadata.xml8
-rw-r--r--app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0.ebuild59
5 files changed, 164 insertions, 0 deletions
diff --git a/app-metrics/rabbitmq_exporter/Manifest b/app-metrics/rabbitmq_exporter/Manifest
new file mode 100644
index 00000000000..f3cbbd15225
--- /dev/null
+++ b/app-metrics/rabbitmq_exporter/Manifest
@@ -0,0 +1,12 @@
+DIST github.com-Sirupsen-logrus-78fb3852d92683dc28da6cc3d5f965100677c27d.tar.gz 38596 BLAKE2B 777c96b5da859d9db92653c922e0ee296c4d3839981389c7e31f0c92913772cbd83227420b9c5eb3de55f465d513b1b0b8fe72b07f80277bb891a127314ce45f SHA512 cb08995d0705a8999b3eec044d3efe209e4110c15da5116f364ee3fb7dba0372d47e0d35cd1cfd7e75e31fd3c867bd023e90565bbd78f4eaf2c29ebf0e53fd53
+DIST github.com-beorn7-perks-3a771d992973f24aa725d07868b467d1ddfceafb.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277
+DIST github.com-golang-crypto-ff983b9c42bc9fbf91556e191cc8efb585c16908.tar.gz 1645106 BLAKE2B 3d7271479ef812761a02c1d20429800cd29706e802a8ccf57e916bdb8befc87a9b1b1a88d42adb764a32fa5f4c5f5a5e434af63812a5bcd3de625658792a49a3 SHA512 19746e84901c0749da544ba02c74c8ccabfee5f186a0d00509e54f20c191da9ea56844de988265f072af1fae671d78d741a44f782b8c1704c9da0441436c2122
+DIST github.com-golang-protobuf-347cf4a86c1cb8d262994d8ef5924d4576c5b331.tar.gz 329489 BLAKE2B 828678cee603917e7f4efee2dd0902730a73932b94b12d4f4b35f0fcecaa329cdc39c3fa9926ce3706f86cc52c0aa4984f68ee0943ecc6d9571b0175ff671ab0 SHA512 de4307b91923a6890ab2f8eaf2ed4f7f32a45a4a0cc7b0d6f53ce31c5fe3ed08f378072075456d2c99c89a3b5acbca315814b8e5ec70e6ceb0ca62f7013f618c
+DIST github.com-golang-sys-2be51725563103c17124a318f1745b66f2347acb.tar.gz 1220240 BLAKE2B ae08467ca600c6f837a2b2203f2e86ecbdb14d8865bea9dd1069f30028324ca20a9a2f5b1a5dbd4323a0fe8a2aa94fd64878de37bc628f67149318ec9594614c SHA512 87e9f267c06baa2ecf6fb84cd0b092c9fea54f729c27ab86f9702f05a971cbe47f23cd03c50a4eefc90e2b2559844b56866504df64829d8fb45451e461999807
+DIST github.com-kbudde-gobert-a6daecb9ddeb548b7cfb3f5ac9deef9ded522730.tar.gz 14629 BLAKE2B 0731b1fd24ac5139f12a2a11b9f921c2afeedb78c573e7a788bcf2d95695f3212ff8a2d107c6fc6ad5045c9f4a5610a34ffcdc3b1580bc366860331b0c4731b9 SHA512 daaeea3cbe1f813e024272479b2a4af550071c82cf9261b7901279c28fe44e8d12afff707fb8a393a46396a6eaec7c6ef5da07220a85c1b70aa0a13f769bbc73
+DIST github.com-matttproud-golang_protobuf_extensions-c182affec369e30f25d3eb8cd8a478dee585ae7d.tar.gz 37541 BLAKE2B f78899afa1390aca6cb1b412271713c60107771d512ead83482e0bb1716d175b791b4b04bd24b7f469cc1a29176eadcf0545ac3bf166c5b350602420d3c05aec SHA512 141b1b781a4d1c59f5eb1af93c966343b80ed405a5f63774e6cda9f12c34536e892c7a84699d6cf2e9c775457a4c2ad5d5d0b4d302fc25a923ab81d46ad65580
+DIST github.com-prometheus-client_golang-d2ead25884778582e740573999f7b07f47e171b4.tar.gz 131949 BLAKE2B 352e0ef2bd704f6c490e57520d415e89d950241c39f3cdf851524d4cca87c25c31bf2ffb77914981cb730cb474033f4551b50c5b6085e5e273c2d29aaab1f012 SHA512 ca89d613e8bc6cff928d9ce8d3d563c8277cb31756c66d8c0e6f6b6ce00c1405d10e465245ac63fd6889aeafae0d6914814384e94e127929fbcfd606a59e42a5
+DIST github.com-prometheus-client_model-f287a105a20ec685d797f65cd0ce8fbeaef42da1.tar.gz 57203 BLAKE2B 2d56b90ced967f5f7a2c59bb330aaf8c56cf522091ee413ff27c22cb9e7d656080bd7d4dd2372938a873617054c7c98925e10fdc7996b136eaa4fd1b6482b734 SHA512 b4f900e725a638a7131eee1c6ff5bf550025b4d9e5bb2dd09149e91ce02a7aba458039c2162b6a1f9a6b6c7c8fc0fc29510b6c752caad51282a960d18860f960
+DIST github.com-prometheus-common-2998b132700a7d019ff618c06a234b47c1f3f681.tar.gz 87368 BLAKE2B fc6c6e197d4cc61afefa9fb8e3a8d6b36ab029f62e3cf9adf8359e4885554f94427f17218d45c90c9d7f4a6985b2e4143a4d304d39f806bd70d2c6f05de29bc2 SHA512 b2095da96596fc500ece6b331cda2558f8c813720853f2489aee3dec65de95eb13f7b0853e3812433fdc040f16990d2f05b2a6b8b41275210c504ff333ca625d
+DIST github.com-prometheus-procfs-b1a0a9a36d7453ba0f62578b99712f3a6c5f82d1.tar.gz 61720 BLAKE2B 2f9b25506527aaf6e1bf560a1b680b958d1281acbaa2bb896bfea50b5b7de8992d10e8e812f8ae449ab67145c88179c15afe1f719851d1717b28963071088082 SHA512 5938b4a8fa9a5ee32be995fed0d0e6b26941765470aca4eda63a7c42db457e83da43fde2f33b2d4ded3545e5643f607ec7060406b0a1b15e64cc732bb2badd4a
+DIST rabbitmq_exporter-0.29.0.tar.gz 36950 BLAKE2B c4e10acb4fb610725dfc82c227ccf79ca60ffc30cd6c3f4ff741020cd7d2a757895af046bc2ded8a9b6a8c3fec870abb746e0f363e12d5221ccbce4b0fa6ca3c SHA512 8806e4a0c62126ef3575be2d558663165c04bf9b94a865d078e1ca92c0bb2d4ab057f6c37993236ab2327c1932bcf155c90ce9729924a06066da74e68086485d
diff --git a/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.confd b/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.confd
new file mode 100644
index 00000000000..fb132bc9f51
--- /dev/null
+++ b/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.confd
@@ -0,0 +1,6 @@
+# The following are the upstream recommended and default settings.
+# For the full list of settings and their default values, see
+# /usr/share/doc/rabbitmq_exporter-*/README.md.
+
+# PUBLISH_PORT=9419
+# RABBIT_CAPABILITIES=bert,no_sort
diff --git a/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.initd b/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.initd
new file mode 100644
index 00000000000..d45de4ecbec
--- /dev/null
+++ b/app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.initd
@@ -0,0 +1,79 @@
+#!/sbin/openrc-run
+
+description="rabbitmq exporter for Prometheus"
+command=/usr/bin/rabbitmq_exporter
+command_background=yes
+command_user=${RC_SVCNAME}:${RC_SVCNAME}
+pidfile=/var/run/${RC_SVCNAME}.pid
+error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}
+
+start_pre() {
+ local env_args
+ if [ -n "${RABBIT_URL}" ]; then
+ env_args="${env_args} -e RABBIT_URL=${RABBIT_URL}"
+ fi
+ if [ -n "${RABBIT_USER}" ]; then
+ env_args="${env_args} -e RABBIT_USER=${RABBIT_USER}"
+ fi
+ if [ -n "${RABBIT_PASSWORD}" ]; then
+ env_args="${env_args} -e RABBIT_PASSWORD=${RABBIT_PASSWORD}"
+ fi
+ if [ -n "${RABBIT_USER_FILE}" ]; then
+ env_args="${env_args} -e RABBIT_USER_FILE=${RABBIT_USER_FILE}"
+ fi
+ if [ -n "${RABBIT_PASSWORD_FILE}" ]; then
+ env_args="${env_args} -e RABBIT_PASSWORD_FILE=${RABBIT_PASSWORD_FILE}"
+ fi
+ if [ -n "${PUBLISH_PORT}" ]; then
+ env_args="${env_args} -e PUBLISH_PORT=${PUBLISH_PORT}"
+ else
+ env_args="${env_args} -e PUBLISH_PORT=9419"
+ fi
+ if [ -n "${PUBLISH_ADDR}" ]; then
+ env_args="${env_args} -e PUBLISH_ADDR=${PUBLISH_ADDR}"
+ fi
+ if [ -n "${OUTPUT_FORMAT}" ]; then
+ env_args="${env_args} -e OUTPUT_FORMAT=${OUTPUT_FORMAT}"
+ fi
+ if [ -n "${LOG_LEVEL}" ]; then
+ env_args="${env_args} -e LOG_LEVEL=${LOG_LEVEL}"
+ fi
+ if [ -n "${CAFILE}" ]; then
+ env_args="${env_args} -e CAFILE=${CAFILE}"
+ fi
+ if [ -n "${SKIPVERIFY}" ]; then
+ env_args="${env_args} -e SKIPVERIFY=${SKIPVERIFY}"
+ fi
+ if [ -n "${SKIP_VHOST}" ]; then
+ env_args="${env_args} -e SKIP_VHOST=${SKIP_VHOST}"
+ fi
+ if [ -n "${INCLUDE_VHOST}" ]; then
+ env_args="${env_args} -e INCLUDE_VHOST=${INCLUDE_VHOST}"
+ fi
+ if [ -n "${INCLUDE_QUEUES}" ]; then
+ env_args="${env_args} -e INCLUDE_QUEUES=${INCLUDE_QUEUES}"
+ fi
+ if [ -n "${SKIP_QUEUES}" ]; then
+ env_args="${env_args} -e SKIP_QUEUES=${SKIP_QUEUES}"
+ fi
+ if [ -n "${RABBIT_CAPABILITIES}" ]; then
+ env_args="${env_args} -e RABBIT_CAPABILITIES=${RABBIT_CAPABILITIES}"
+ fi
+ if [ -n "${RABBIT_EXPORTERS}" ]; then
+ env_args="${env_args} -e RABBIT_EXPORTERS=${RABBIT_EXPORTERS}"
+ fi
+ if [ -n "${RABBIT_TIMEOUT}" ]; then
+ env_args="${env_args} -e RABBIT_TIMEOUT=${RABBIT_TIMEOUT}"
+ fi
+ if [ -n "${MAX_QUEUES}" ]; then
+ env_args="${env_args} -e MAX_QUEUES=${MAX_QUEUES}"
+ fi
+ start_stop_daemon_args="${start_stop_daemon_args} ${env_args}"
+ supervise_daemon_args="${supervise_daemon_args} ${env_args}"
+ return 0
+}
diff --git a/app-metrics/rabbitmq_exporter/metadata.xml b/app-metrics/rabbitmq_exporter/metadata.xml
new file mode 100644
index 00000000000..c36c37139fa
--- /dev/null
+++ b/app-metrics/rabbitmq_exporter/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0.ebuild b/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0.ebuild
new file mode 100644
index 00000000000..6f5c5c9330f
--- /dev/null
+++ b/app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN=github.com/kbudde/rabbitmq_exporter
+EGO_VENDOR=(
+ "github.com/kbudde/gobert a6daecb9ddeb548b7cfb3f5ac9deef9ded522730"
+ "github.com/prometheus/client_model f287a105a20ec685d797f65cd0ce8fbeaef42da1"
+ "github.com/prometheus/common 2998b132700a7d019ff618c06a234b47c1f3f681"
+ "github.com/prometheus/client_golang d2ead25884778582e740573999f7b07f47e171b4"
+ "github.com/prometheus/procfs b1a0a9a36d7453ba0f62578b99712f3a6c5f82d1"
+ "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d"
+ "github.com/golang/protobuf 347cf4a86c1cb8d262994d8ef5924d4576c5b331"
+ "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
+ "github.com/Sirupsen/logrus 78fb3852d92683dc28da6cc3d5f965100677c27d"
+ "golang.org/x/crypto ff983b9c42bc9fbf91556e191cc8efb585c16908 github.com/golang/crypto"
+ "golang.org/x/sys 2be51725563103c17124a318f1745b66f2347acb github.com/golang/sys"
+)
+
+inherit user golang-build golang-vcs-snapshot
+
+DESCRIPTION="Rabbitmq exporter for Prometheus"
+HOMEPAGE="https://github.com/kbudde/rabbitmq_exporter"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-util/promu"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ default
+ sed -i -e "/-s$/d" -e "s/{{.Revision}}/v${PV}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+ pushd src/${EGO_PN} || die
+ mkdir -p bin || die
+ GOPATH="${S}" promu build -v --prefix bin || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin bin/${PN}
+ dodoc *.md
+ popd || die
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}