diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
commit | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch) | |
tree | 9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /app-metrics | |
parent | 2891d29af8907ce881662f4a02844926d7a293c7 (diff) |
gentoo resync : 12.01.2019
Diffstat (limited to 'app-metrics')
23 files changed, 413 insertions, 0 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex f4a7b27cabd9..64c95be8bdda 100644 --- a/app-metrics/Manifest.gz +++ b/app-metrics/Manifest.gz diff --git a/app-metrics/github-exporter/Manifest b/app-metrics/github-exporter/Manifest new file mode 100644 index 000000000000..d18e028cb607 --- /dev/null +++ b/app-metrics/github-exporter/Manifest @@ -0,0 +1,17 @@ +AUX github-exporter.confd 507 BLAKE2B 46ace5b98c0ec60c7a93c50524258e44537e1a4ed13d77c3b4f6651ce56f5323f2342d967b145515a544edb3203b71052edb12019f9105b8e6b4bce9da0d14aa SHA512 10430a3d1fcb6a7e125fcddfb27a610843f6646091efb8e53fa9eca7bd434c528562857267b59f75452eb78c78821e8856716d417145a9e930861e4340382d1a +AUX github-exporter.initd 1512 BLAKE2B ab1f34d3084655da8b7f5345e7001f968d0f7361d8c0eb45070e8a7c1bb6216b65ccfec754897c2472b91fa457a50b363d51939ccc772ae64e153abe97b10cba SHA512 d0ebac39a04d94a10f6d38cbad660b7c8f4bf570bbda334d7e7eb6c2d635f6ac4425f462e2ed9b68bd4f8ac56842deaa6ab15b6c883cf4fd17078115feaaa9be +DIST github-exporter-04.tar.gz 7023 BLAKE2B a2502fab29f7d987e7fe02a739d9d3bcc34376315581830033dc99d9c16be0bca52a30b8f491682de34ded4732c9216a05e8bfc1d2ac6510a22bd752a50bb5b9 SHA512 4837d78d058e8adb110ced899a9d136eed86aa3facf7258a6d7b392a3a61aa827662e63f8bd64b0ca44e6ed78518a6ae669068018ffc18d3bb42d19f4fb364be +DIST github.com-beorn7-perks-3a771d9.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277 +DIST github.com-fatih-structs-878a968.tar.gz 14629 BLAKE2B 673a25a39cab677bd275ccaf14675a1fa7847d1a089ceaa20cc981ca01a1cbba597e94467e7accdd1a4319acd44c5d7bd0f6e2de0eebd7fe2f43cc6cc9a94271 SHA512 3c00f10e17e6dd818422a6b8e1ef5454b3dd9cc78da22c56ec3c474bd7a590bb3dd56e803c01882b52ce12a6a4deda7935bbb786c3cebc2e60b379337a884752 +DIST github.com-golang-crypto-ff983b9.tar.gz 1645106 BLAKE2B 3d7271479ef812761a02c1d20429800cd29706e802a8ccf57e916bdb8befc87a9b1b1a88d42adb764a32fa5f4c5f5a5e434af63812a5bcd3de625658792a49a3 SHA512 19746e84901c0749da544ba02c74c8ccabfee5f186a0d00509e54f20c191da9ea56844de988265f072af1fae671d78d741a44f782b8c1704c9da0441436c2122 +DIST github.com-golang-protobuf-347cf4a.tar.gz 329489 BLAKE2B 828678cee603917e7f4efee2dd0902730a73932b94b12d4f4b35f0fcecaa329cdc39c3fa9926ce3706f86cc52c0aa4984f68ee0943ecc6d9571b0175ff671ab0 SHA512 de4307b91923a6890ab2f8eaf2ed4f7f32a45a4a0cc7b0d6f53ce31c5fe3ed08f378072075456d2c99c89a3b5acbca315814b8e5ec70e6ceb0ca62f7013f618c +DIST github.com-golang-sys-48ac38b.tar.gz 1219195 BLAKE2B b632d935ed84ace8ddad5308556ddcfcca7b572fd1f65d8b5c39e9ba2b884c79f5c150cc3efa920654661b0958d894fa23445701dcd1d35f0f49ff4dda3bccd4 SHA512 8cea014c67df943dd68bb8787719acc0925f967f2cef552ae52c595ca4eda38adeab6c92b868822e08601cca20a61f16b78426d8b9252932168ffbd0f2403859 +DIST github.com-infinityworks-go-common-7f20a14.tar.gz 4072 BLAKE2B 79a788813840c8361e80ff882fff680ed83d3fe8485c09856290f0fa183438770210be600a3d6ae0d62e1a1027a43a6eef184d5a4b5f38fec9c15d54f16d384e SHA512 a8bc3d11eead090807bd7b64a71d7b078836e807b2a18ebb8e1b1ef286e920e993d3fe734eeafeccd80c8644b4c466a73b1cf479a4932c84e0e5fc328e50fdd2 +DIST github.com-matttproud-golang_protobuf_extensions-c182aff.tar.gz 37541 BLAKE2B f78899afa1390aca6cb1b412271713c60107771d512ead83482e0bb1716d175b791b4b04bd24b7f469cc1a29176eadcf0545ac3bf166c5b350602420d3c05aec SHA512 141b1b781a4d1c59f5eb1af93c966343b80ed405a5f63774e6cda9f12c34536e892c7a84699d6cf2e9c775457a4c2ad5d5d0b4d302fc25a923ab81d46ad65580 +DIST github.com-prometheus-client_golang-d2ead25.tar.gz 131949 BLAKE2B 352e0ef2bd704f6c490e57520d415e89d950241c39f3cdf851524d4cca87c25c31bf2ffb77914981cb730cb474033f4551b50c5b6085e5e273c2d29aaab1f012 SHA512 ca89d613e8bc6cff928d9ce8d3d563c8277cb31756c66d8c0e6f6b6ce00c1405d10e465245ac63fd6889aeafae0d6914814384e94e127929fbcfd606a59e42a5 +DIST github.com-prometheus-client_model-f287a10.tar.gz 57203 BLAKE2B 2d56b90ced967f5f7a2c59bb330aaf8c56cf522091ee413ff27c22cb9e7d656080bd7d4dd2372938a873617054c7c98925e10fdc7996b136eaa4fd1b6482b734 SHA512 b4f900e725a638a7131eee1c6ff5bf550025b4d9e5bb2dd09149e91ce02a7aba458039c2162b6a1f9a6b6c7c8fc0fc29510b6c752caad51282a960d18860f960 +DIST github.com-prometheus-common-2998b13.tar.gz 87368 BLAKE2B fc6c6e197d4cc61afefa9fb8e3a8d6b36ab029f62e3cf9adf8359e4885554f94427f17218d45c90c9d7f4a6985b2e4143a4d304d39f806bd70d2c6f05de29bc2 SHA512 b2095da96596fc500ece6b331cda2558f8c813720853f2489aee3dec65de95eb13f7b0853e3812433fdc040f16990d2f05b2a6b8b41275210c504ff333ca625d +DIST github.com-prometheus-procfs-b1a0a9a.tar.gz 61720 BLAKE2B 2f9b25506527aaf6e1bf560a1b680b958d1281acbaa2bb896bfea50b5b7de8992d10e8e812f8ae449ab67145c88179c15afe1f719851d1717b28963071088082 SHA512 5938b4a8fa9a5ee32be995fed0d0e6b26941765470aca4eda63a7c42db457e83da43fde2f33b2d4ded3545e5643f607ec7060406b0a1b15e64cc732bb2badd4a +DIST github.com-sirupsen-logrus-eef6b76.tar.gz 38613 BLAKE2B 32ff02d46dcdf08b273c406323236b0750433bda16a5072e4161b166863f5a062817166dc871e15fb169bfdb95ff45f167bc30b2e259294e0a51111b8a78afd3 SHA512 e7ca358b72bebbf663af426a110cd8da22bf33e2ec14fb7337af75a1cdd4aecb371436b8cc83f04a52a52ced56c02a762b12c2fe5ae5e64d7aee261a7254b14e +EBUILD github-exporter-04.ebuild 1949 BLAKE2B 4a7f826fff339b28cbbeac15b89a39848c42509010f8cd9893416075fa6f1225b48e71e5ad11245100ea8a9100e1b5ee283fe3af96dddb8da4d35eef7c5dc048 SHA512 1a4bbf6af5931bd6878142d922cdab6e53c2b1adfc0b88421eee01c8a4265dc8e7435cdf831b67a729f58d26eb981c511ccbc956b4f859258a9ed3ab9b4861ae +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/github-exporter/files/github-exporter.confd b/app-metrics/github-exporter/files/github-exporter.confd new file mode 100644 index 000000000000..35368901c8f1 --- /dev/null +++ b/app-metrics/github-exporter/files/github-exporter.confd @@ -0,0 +1,14 @@ +# settings for github-exporter + +# I will list the required variables here, but there are several more. +# Please see the README for all of them. + +# LISTEN_PORT specifies the port the exporter will use. Below is the default. +# LISTEN_PORT=9171 + +# ORGS should contain a list of github organizations you wish to monitor. +# ORGS="org1,org2" + +# REPOS should contain a list of github repos you want tomonitor. +# If neither ORGS nor REPOS is set, the exporter will refuse to run. +# REPOS="user1/repo1,user2/repo2" diff --git a/app-metrics/github-exporter/files/github-exporter.initd b/app-metrics/github-exporter/files/github-exporter.initd new file mode 100644 index 000000000000..45ea133260af --- /dev/null +++ b/app-metrics/github-exporter/files/github-exporter.initd @@ -0,0 +1,53 @@ +#!/sbin/openrc-run + +description="github exporter for Prometheus" +command=/usr/bin/github-exporter +command_background=yes +command_user=${RC_SVCNAME}:${RC_SVCNAME} +pidfile=/var/run/github-exporter.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 [ -z "${ORGS}" ] && [ -z "${REPOS}" ]; then + eerror "ORGS and / or REPOS must be set." + return 1 + fi + if [ -n "${GITHUB_TOKEN}" ] && [ -n "${GITHUB_TOKEN_FILE}" ]; then + eerror "Please set only one of GITHUB_TOKEN or GITHUB_TOKEN_FILE" + return 1 + fi + if [ -n "${API_URL}" ]; then + env_args="${env_args} -e API_URL=${API_URL}" + fi + if [ -n "${GITHUB_TOKEN}" ]; then + env_args="${env_args} -e GITHUB_TOKEN=${GITHUB_TOKEN}" + elif [ -n "${GITHUB_TOKEN_FILE}" ]; then + env_args="${env_args} -e GITHUB_TOKEN_FILE=${GITHUB_TOKEN_FILE}" + fi + if [ -z "${LISTEN_PORT}" ]; then + env_args="${env_args} -e LISTEN_PORT=9171" + else + env_args="${env_args} -e LISTEN_PORT=${LISTEN_PORT}" + fi + if [ -n "${LOG_LEVEL}" ]; then + env_args="${env_args} -e LOG_LEVEL=${LOG_LEVEL}" + fi + if [ -n "${METRICS_PATH}" ]; then + env_args="${env_args} -e METRICS_PATH=${METRICS_PATH}" + fi + if [ -n "${ORGS}" ]; then + env_args="${env_args} -e ORGS=${ORGS}" + fi + if [ -n "${REPOS}" ]; then + env_args="${env_args} -e REPOS=${REPOS}" + 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/github-exporter/github-exporter-04.ebuild b/app-metrics/github-exporter/github-exporter-04.ebuild new file mode 100644 index 000000000000..6bc641ecb2f1 --- /dev/null +++ b/app-metrics/github-exporter/github-exporter-04.ebuild @@ -0,0 +1,75 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/infinityworks/github-exporter + +EGO_VENDOR=( + "github.com/beorn7/perks 3a771d9" + "github.com/fatih/structs 878a968" + "github.com/golang/protobuf 347cf4a" + "github.com/infinityworks/go-common 7f20a14" + "github.com/matttproud/golang_protobuf_extensions c182aff" + "github.com/prometheus/client_golang d2ead25" + "github.com/prometheus/client_model f287a10" + "github.com/prometheus/common 2998b13" + "github.com/prometheus/procfs b1a0a9a" + "github.com/sirupsen/logrus eef6b76" + "golang.org/x/crypto ff983b9 github.com/golang/crypto" + "golang.org/x/sys 48ac38b github.com/golang/sys" +) + +inherit golang-build golang-vcs-snapshot systemd + +DESCRIPTION="Github statistics exporter for prometheus" +HOMEPAGE="https://github.com/infinityworks/github-exporter" +SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e 's/infinityworksltd/infinityworks/' \ + "src/${EGO_PN}/main.go" \ + "src/${EGO_PN}/config/config.go" \ + "src/${EGO_PN}/exporter/structs.go" \ + || die "sed failed" + sed -i -e 's/Sirupsen/sirupsen/' \ + "src/${EGO_PN}/main.go" \ + "src/${EGO_PN}/config/config.go" \ + "src/${EGO_PN}/exporter/gather.go" \ + "src/${EGO_PN}/exporter/http.go" \ + "src/${EGO_PN}/exporter/prometheus.go" \ + || die "sed failed" +} + +src_compile() { + set -- env GOPATH="${S}" go build -v "${EGO_PN}" + echo "$@" + "$@" || die "build failed" +} + +src_install() { + dobin ${PN} + cd "src/${EGO_PN}" || die +dodoc *.md + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Before you can use ${PN}, you must configure it in" + elog "${EROOT}/etc/conf.d/${PN}" + fi +} diff --git a/app-metrics/github-exporter/metadata.xml b/app-metrics/github-exporter/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /dev/null +++ b/app-metrics/github-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/memcached_exporter/Manifest b/app-metrics/memcached_exporter/Manifest new file mode 100644 index 000000000000..ec95c4928b07 --- /dev/null +++ b/app-metrics/memcached_exporter/Manifest @@ -0,0 +1,5 @@ +AUX memcached_exporter.confd 62 BLAKE2B b663b955cddd850ea26292f92e8462132057424cff4292a7c95b40f79c000e90aef739652cd0ca3d419bd648b3062b5374b38bf934ce30c9c5084d6abda7e196 SHA512 8859128c27264826b665f8be1ea87d7df4f9c4731dfc065914f69efb1a3fedb1cdc09cac99a2a67ef12668b87ceda2f2ae4ccd99c30d23b9eb424bfc51406452 +AUX memcached_exporter.initd 485 BLAKE2B c4e34f4ae1e43b78291f24f32857e548a9ba384f9f359962a65e2349c45096d665debad5b85f5109de4972cd957c87825d46cbedca5d954c76a1a34071e1a616 SHA512 78219e03ab100aa1fecb61ecc8bd8964eab03c1eeb0566185a6135c3fc4ce6fab07e303fb638ae6137d19fd41b6064aa9cfddc9be9739d56e1c8bd15d1e6f04f +DIST memcached_exporter-0.5.0.tar.gz 1350752 BLAKE2B e9a326ca155e0e0a89dd556f0a97ba9bbe73e3e02a905497c55a5390be2cbf211dde9dda37355dd043b711258c78cf911c79ae898b6e0934f2d4b2ddef7ae946 SHA512 62ec7f9cefc88425ea3b53a634b2d5ff1534624b6e149c962372e81a7271fc1bf3c01c7d8641dc49250b8d124bec740b3c2768e62d51cfdc025a29f71a49b428 +EBUILD memcached_exporter-0.5.0.ebuild 994 BLAKE2B feae07b3e56d55f9a74b7b2a272e929064aeb418f65b5ac272a89ac63d2dcd4afee614eab2806b09b3cdd7f5678ccd7740efd77c8b6ceff0eba0cf2ed1b98a5f SHA512 df00ab947fa07b9597e25d659506cbb01f84fda13e9d5651051912868459092b205c73b53f7c34f33676c377938d30d2c2cc5f9af518cfad9ae3a060869ab6d8 +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/memcached_exporter/files/memcached_exporter.confd b/app-metrics/memcached_exporter/files/memcached_exporter.confd new file mode 100644 index 000000000000..ec7b89ec9cfe --- /dev/null +++ b/app-metrics/memcached_exporter/files/memcached_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus memcached exporter +command_args="" diff --git a/app-metrics/memcached_exporter/files/memcached_exporter.initd b/app-metrics/memcached_exporter/files/memcached_exporter.initd new file mode 100644 index 000000000000..fa21bea18d19 --- /dev/null +++ b/app-metrics/memcached_exporter/files/memcached_exporter.initd @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 2016-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus memcached exporter" +pidfile="/var/run/${RC_SVCNAME}.pid" +command="/usr/bin/memcached_exporter" +command_user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} +command_background="true" +errror_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +start_stop_daemon_args="--group ${group}" diff --git a/app-metrics/memcached_exporter/memcached_exporter-0.5.0.ebuild b/app-metrics/memcached_exporter/memcached_exporter-0.5.0.ebuild new file mode 100644 index 000000000000..b7ee78d65607 --- /dev/null +++ b/app-metrics/memcached_exporter/memcached_exporter-0.5.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build user + +EGO_PN=github.com/prometheus/memcached_exporter +DESCRIPTION="Prometheus exporter for memcached" +HOMEPAGE="https://github.com/prometheus/memcached_exporter" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="dev-util/promu" + +RESTRICT="strip" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + mkdir -p "${HOME}/go/src/${EGO_PN%/*}" || die "mkdir failed" + ln -snf "${S}" "${HOME}/go/src/${EGO_PN}" || die "ln failed" + default +} + +src_compile() { + # needed since we use the default GOPATH + unset GOPATH + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + dodoc *.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/memcached_exporter/metadata.xml b/app-metrics/memcached_exporter/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /dev/null +++ b/app-metrics/memcached_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/nginx-lua-prometheus/Manifest b/app-metrics/nginx-lua-prometheus/Manifest new file mode 100644 index 000000000000..bc3f966afa78 --- /dev/null +++ b/app-metrics/nginx-lua-prometheus/Manifest @@ -0,0 +1,3 @@ +DIST nginx-lua-prometheus-0.1_pre20170610.tar.gz 10307 BLAKE2B b08fcb126a6d7034c143c7e96709f3f2751d90f60f6b9225f55ed46f7f211ebcf5f1688bd8b2c82286e329dd23e09a5163ad316ba6568755936253e8e55590f1 SHA512 df1022a88e82e388e68146f81e51a53f9b0c1a14a43d58e468d258ac0ca9875c1c88af44c46c91d89dc7fc1fef0ffebdb9163f886d85fde995e61e2cac3b5c81 +EBUILD nginx-lua-prometheus-0.1_pre20170610.ebuild 828 BLAKE2B 1d0cf2b5a48155ed77c18942228f071b9a55e8106bb9ed6c9299adc1a427453726dc175a5502010aed6d412ce630ea167731138496748127b3ef986c846c5794 SHA512 d8fb080bce6eb397fd1fc895444f7162eaef5dd8f6be2aef75cc4e9d0de31426192bfec0ab3c545e63f595f8ab14ca061308d96baddf73f7a2cd8529451bf96b +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/nginx-lua-prometheus/metadata.xml b/app-metrics/nginx-lua-prometheus/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /dev/null +++ b/app-metrics/nginx-lua-prometheus/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/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild new file mode 100644 index 000000000000..b8af9afe146c --- /dev/null +++ b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild @@ -0,0 +1,33 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# This is the upstream tag which corresponds to this release. +# It needs to be updated with every bump. +TAG="0.1-20170610" + +inherit toolchain-funcs + +DESCRIPTION="Library that exports Nginx metrics to Prometheus" +HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus" +SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +COMMON_DEPEND=">=dev-lang/lua-5.1:=" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND} + www-servers/nginx[nginx_modules_http_lua]" +BDEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + + S="${WORKDIR}/${PN}-${TAG}" + +src_install() { + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN} + doins prometheus.lua + dodoc *.md +} diff --git a/app-metrics/process-exporter/Manifest b/app-metrics/process-exporter/Manifest new file mode 100644 index 000000000000..01e6bd1bd64c --- /dev/null +++ b/app-metrics/process-exporter/Manifest @@ -0,0 +1,4 @@ +AUX process-exporter.initd 265 BLAKE2B 9dcda67ec54f4b1576756f209768cb95947e304ed278e60323584ff08880ba1e45108054c84a453b39d85aa2c5a169f85ac28e0ca5b6c4e1b04ce64ccc9db381 SHA512 90a19f4ea330c86b37109d3d2560da50bb40625ec8feeed6d10cfc5e95ee4a6dcf1fba6c359c76727ef9d1c94fec06cc8e480a3392859df8b99347a2b54c4eb2 +DIST process-exporter-0.4.0.tar.gz 378006 BLAKE2B 053379e8e0cb95f099cebf53289c48c39d6c8ef22c8b0dcf0bd128453e601da98be9205bb5c7cda8a05d5f50addabbcb46f6ece44926da17c1bd8616e452783a SHA512 88f6f0e07bb7f3ea6c593ba359c09ace47eb0830ff0759b1f4dd64219a6c9069dc2891a328a90bdef13ea02efc576fb71de7ff095788b4dd45c2683c90904363 +EBUILD process-exporter-0.4.0.ebuild 713 BLAKE2B ffa91501c9ee04e4040b567dbb1666002bbb9abcdf70aff49dc3d8c7bba92d488634fbfd023f3f29d4928a244554cdbdd6f056a50991ffc52954f0f7d8a259c7 SHA512 b1ac1ed9ec5d8603693d5d2e0e4c04bb529bc35efc5e6b9c6cb915e3deff1904745b61c211bd3f058071d29f22dfd499e023f445cb443fc763883b556090bc37 +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/process-exporter/files/process-exporter.initd b/app-metrics/process-exporter/files/process-exporter.initd new file mode 100644 index 000000000000..d739825ecdfc --- /dev/null +++ b/app-metrics/process-exporter/files/process-exporter.initd @@ -0,0 +1,8 @@ +#!/sbin/openrc-run + +description="Process Exporter for Prometheus" +command=/usr/bin/process-exporter +command_args="--config.path /etc/process-exporter/all.yaml + --web.listen-address=:9256 ${COMMAND_ARGS}" +command_background=yes +pidfile=/var/run/process-exporter.pid diff --git a/app-metrics/process-exporter/metadata.xml b/app-metrics/process-exporter/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /dev/null +++ b/app-metrics/process-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/process-exporter/process-exporter-0.4.0.ebuild b/app-metrics/process-exporter/process-exporter-0.4.0.ebuild new file mode 100644 index 000000000000..4ea9b6f62fa9 --- /dev/null +++ b/app-metrics/process-exporter/process-exporter-0.4.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/ncabatoff/process-exporter + +inherit golang-build golang-vcs-snapshot systemd + +DESCRIPTION="Process exporter for prometheus" +HOMEPAGE="https://github.com/ncabatoff/process-exporter" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip" + +src_compile() { + pushd "src/${EGO_PN}" || die + GOPATH="${S}" emake build +} + +src_install() { + pushd "src/${EGO_PN}" || die + dobin ${PN} +dodoc *.md + insinto /etc/${PN} + doins packaging/conf/all.yaml + systemd_dounit packaging/${PN}.service + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} diff --git a/app-metrics/vault_exporter/Manifest b/app-metrics/vault_exporter/Manifest new file mode 100644 index 000000000000..8b8d344acb98 --- /dev/null +++ b/app-metrics/vault_exporter/Manifest @@ -0,0 +1,5 @@ +AUX vault_exporter.confd 58 BLAKE2B c34e7aa384449a3cc88592055f16111b5c23a8479cd4a8029c88002584d23c3d1bd490acebb3eba676637ab01ff733d057ee57e3a38ca7346072441173569b4b SHA512 a77f0a945ae0a42308a4d43e5de1eb02221ceef3bdd36f0fb716a7784843c35f3b00cee88fd45d477d417b297b532fc6953bf71cc86a7112bf45f872ba92f396 +AUX vault_exporter.initd 549 BLAKE2B 1a8a2a35af3c851318e461176fb87f9660b5a060238cc02edde976532bb7076fcb6a100ffa196224942e30149fda2e8f8d9a0dc211e5d57fce39a8d5645b65d8 SHA512 6470aec28a3a6ffa574dfdda2947b1d16d4255d7e7921d88622043b1dfa6b756427f98c288d3437f9f06539ca156267bfba6d03c6030259281c5acda05ba4dd6 +DIST vault_exporter-0.1.2.tar.gz 34555506 BLAKE2B 53178f8a16fceca442e38a756081cca438abdd786960de3dae073f3ce5f2ac2c5d06684ec56e48a2057b4a2161a25527b41c36d3705a054f0bae37357f33faee SHA512 71941c17d7146861a09ed48289efe15143d3fba18e56accdfdf977bf4443bb650e7201a4870b63793d372dcca8f53a04131c12803f019efbdcac9e0ca8909cbd +EBUILD vault_exporter-0.1.2.ebuild 929 BLAKE2B 6d1853fb6a00503f05b69373c9dd96b03d36d2bb72d0970590cb85ea707697aa43768c91da59226fa6222d9999e82a3c447b7c5a6a57855644f343d87a17b549 SHA512 bddd7ffb3c662a6f340740bdc4bfcd7748c6863d959708e9b7ce644edcca66c23ae87e8f65a65f63381159bd7b6abf50808484f8520e6412cb5daac75001276a +MISC metadata.xml 334 BLAKE2B e1317e1e9dbc0a7cfcc31c70693086ef92de9580c99d693040d00d5114a7b9c662c37332a384c21bf236ea46369225211dfeed43b6899e5858be1f10231f7c24 SHA512 fe06afc02cd875a5e214ac923d8b6fb89cad9d5f5c2aa4057fe87c99c0433d76fe3eaa675ca9ac9524352a9382869fb861b19bfb8cc8f6378dcf4fc43865e9da diff --git a/app-metrics/vault_exporter/files/vault_exporter.confd b/app-metrics/vault_exporter/files/vault_exporter.confd new file mode 100644 index 000000000000..c77a74db56d8 --- /dev/null +++ b/app-metrics/vault_exporter/files/vault_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus vault exporter +command_args="" diff --git a/app-metrics/vault_exporter/files/vault_exporter.initd b/app-metrics/vault_exporter/files/vault_exporter.initd new file mode 100644 index 000000000000..254ff41679cf --- /dev/null +++ b/app-metrics/vault_exporter/files/vault_exporter.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2016-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus Vault exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/vault_exporter" +command_args="${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/vault_exporter/${RC_SVCNAME}.log \ + --stderr /var/log/vault_exporter/${RC_SVCNAME}.log" + +depend() { + after net +} diff --git a/app-metrics/vault_exporter/metadata.xml b/app-metrics/vault_exporter/metadata.xml new file mode 100644 index 000000000000..3dfeb8c7054d --- /dev/null +++ b/app-metrics/vault_exporter/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel RĂ¼ger</name> + </maintainer> + <upstream> + <remote-id type="github">grapeshot/vault_exporter</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-metrics/vault_exporter/vault_exporter-0.1.2.ebuild b/app-metrics/vault_exporter/vault_exporter-0.1.2.ebuild new file mode 100644 index 000000000000..3c48b2307d64 --- /dev/null +++ b/app-metrics/vault_exporter/vault_exporter-0.1.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit user golang-build golang-vcs-snapshot + +MY_PV=${PV/_/} + +EGO_PN="github.com/grapeshot/vault_exporter" +ARCHIVE_URI="https://${EGO_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Vault exporter for Prometheus" +HOMEPAGE="https://github.com/grapeshot/vault_exporter" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" emake build || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + newbin _output/bin/vault_exporter-v${PV}* vault_exporter + dodoc README.md + popd || die + keepdir /var/log/vault_exporter + fowners ${PN}:${PN} /var/log/vault_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |