From 09351e78166b5e864197c4456ebae3f89dd0bed9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 22 Jan 2019 10:09:44 +0000 Subject: gentoo resync : 22.01.2019 --- app-metrics/Manifest.gz | Bin 4432 -> 4759 bytes app-metrics/blackbox_exporter/Manifest | 2 + .../blackbox_exporter-0.13.0-r1.ebuild | 57 +++++ .../files/blackbox_exporter.logrotated | 7 + app-metrics/burrow_exporter/Manifest | 4 + .../burrow_exporter-0.0.6-r1.ebuild | 62 +++++ .../files/burrow_exporter-0.0.6-fix-metrics.patch | 49 ++++ .../burrow_exporter-0.0.6-skippable-metrics.patch | 273 +++++++++++++++++++++ .../files/burrow_exporter.logrotated | 7 + app-metrics/github-exporter/Manifest | 1 + .../github-exporter/github-exporter-04-r1.ebuild | 75 ++++++ app-metrics/grok_exporter/Manifest | 12 + .../grok_exporter/files/grok_exporter.initd | 18 ++ .../grok_exporter/grok_exporter-0.2.6.ebuild | 64 +++++ app-metrics/grok_exporter/metadata.xml | 8 + app-metrics/process-exporter/Manifest | 3 +- .../process-exporter/files/process-exporter.initd | 8 +- .../process-exporter-0.4.0-r1.ebuild | 33 +++ app-metrics/prometheus/Manifest | 2 + app-metrics/prometheus/prometheus-2.6.1.ebuild | 70 ++++++ app-metrics/rabbitmq_exporter/Manifest | 16 ++ .../files/rabbitmq_exporter.confd | 6 + .../files/rabbitmq_exporter.initd | 79 ++++++ app-metrics/rabbitmq_exporter/metadata.xml | 8 + .../rabbitmq_exporter-0.29.0.ebuild | 59 +++++ app-metrics/snmp_exporter/Manifest | 7 +- .../snmp_exporter/files/snmp_exporter.logrotated | 7 + .../snmp_exporter/snmp_exporter-0.11.0.ebuild | 50 ---- .../snmp_exporter/snmp_exporter-0.12.0.ebuild | 53 ---- .../snmp_exporter/snmp_exporter-0.14.0-r2.ebuild | 55 +++++ .../snmp_exporter/snmp_exporter-0.14.0.ebuild | 54 ---- 31 files changed, 984 insertions(+), 165 deletions(-) create mode 100644 app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild create mode 100644 app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated create mode 100644 app-metrics/burrow_exporter/burrow_exporter-0.0.6-r1.ebuild create mode 100644 app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-fix-metrics.patch create mode 100644 app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-skippable-metrics.patch create mode 100644 app-metrics/burrow_exporter/files/burrow_exporter.logrotated create mode 100644 app-metrics/github-exporter/github-exporter-04-r1.ebuild create mode 100644 app-metrics/grok_exporter/Manifest create mode 100644 app-metrics/grok_exporter/files/grok_exporter.initd create mode 100644 app-metrics/grok_exporter/grok_exporter-0.2.6.ebuild create mode 100644 app-metrics/grok_exporter/metadata.xml create mode 100644 app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild create mode 100644 app-metrics/prometheus/prometheus-2.6.1.ebuild create mode 100644 app-metrics/rabbitmq_exporter/Manifest create mode 100644 app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.confd create mode 100644 app-metrics/rabbitmq_exporter/files/rabbitmq_exporter.initd create mode 100644 app-metrics/rabbitmq_exporter/metadata.xml create mode 100644 app-metrics/rabbitmq_exporter/rabbitmq_exporter-0.29.0.ebuild create mode 100644 app-metrics/snmp_exporter/files/snmp_exporter.logrotated delete mode 100644 app-metrics/snmp_exporter/snmp_exporter-0.11.0.ebuild delete mode 100644 app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild create mode 100644 app-metrics/snmp_exporter/snmp_exporter-0.14.0-r2.ebuild delete mode 100644 app-metrics/snmp_exporter/snmp_exporter-0.14.0.ebuild (limited to 'app-metrics') diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz index 64c95be8bdda..a80be1261bc6 100644 Binary files a/app-metrics/Manifest.gz and b/app-metrics/Manifest.gz differ diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest index 8927ce500f34..6e2b49f9509e 100644 --- a/app-metrics/blackbox_exporter/Manifest +++ b/app-metrics/blackbox_exporter/Manifest @@ -1,7 +1,9 @@ AUX blackbox_exporter.confd 110 BLAKE2B c3cb7ed7d314ea8b347b4db9839e7c987c91c78378a6085473d687a5f3460f06ca6825567fbe832c3114906156290d00d505e15e3c2461eb844acb4e56937af0 SHA512 aa8720c03c4bf21ad5f789a4e9c6df6059fb71413cfdc605f8868bcd54eab899aa527afa9d847c7780042a8d4d72468145a97f8d732ef6aad861dcbf96bdf2ed AUX blackbox_exporter.initd 615 BLAKE2B fce98f2c0740db2309d0395cf1e7e3f8b3b305c688cbafbf14a1787d952d49933ddebee1a688b844a66c95d02c38c38e943ff73e4dce68a1069c69c91540cc47 SHA512 f5ecc87e592fe85e4cfed759f06a1d88a4bbd05a474cb7955aae296ee29ae2ddf875a427bfcc7ff8369367eb8892c85bcc5051d273f8c2693395c8851b5f8669 +AUX blackbox_exporter.logrotated 107 BLAKE2B 255c64f5f0cee8b0b7a3bf2b3a55725f87f3f8067f840a94e9c70819820d1d42b3c2a7727323edf00d32797aab45060d0033fb5d5762263d502e4f0f1ad3d492 SHA512 2bb4782f925f9f416addf9f0a20ada0f0b61d964667eb8114b5fbdc758f69c07c91bf8e6fd18758d3ec21a7e41c931bd9bf42d16d3dfc45e2718126ffb0f21a6 DIST blackbox_exporter-0.12.0.tar.gz 2202465 BLAKE2B e3b082f8a491b531b0caf3331ecd391bf8734df0915ccbb7988ac1e67e57436bd45169aa403d5511fbb44eb176f89836ad8c04c491f5194f90f9f8a3b686a656 SHA512 2c98c0f4127bdd04ac54eb182c5468fd38121558f85aa8b4bec860f783f266b144df3153da0b028fdb84a4131a4e374a969bb09ce3a781ddf95f0a008c11bbb6 DIST blackbox_exporter-0.13.0.tar.gz 668255 BLAKE2B 08c772175fa911ced04576c43b03b8594a1e6d30767742cea6630561045dd0440e1cd26847f2e7e506fb4fefc603a9a3e1b4228e46735f8d559a55462c0d11e4 SHA512 49290860e5e1713cc0e1edd93fd193d6e23aebe55a6f62778da89450f5ba79787d4ac3fd6ca3aae37f4941c16976db4570f2d4888534f2ce2c86e25e250b12f1 EBUILD blackbox_exporter-0.12.0.ebuild 1440 BLAKE2B cb3900045d4128eb313c1e7c0d314e65c1773f491d314ffe052dbb6390dd4e8eddd4351a1f220fff80d9a88d9ca0676d862716fe83e6a56d84e142daea041854 SHA512 3b9c53156662bc16538f0db00b741ada3b3fd6373f7ef3272c97cd7080dc36b83ef8f40007ca307dcd73e5b82274e3f16a2de67743858c0f39eec99d76f6a3d1 +EBUILD blackbox_exporter-0.13.0-r1.ebuild 1545 BLAKE2B 5494b583640854646256e52ba19b7ebf1a7fa5e43d20afadb3a659e98d122b085e042ea04b4276a2f75b3077a444dee0a7718ebf052c47169fe9ae5df57e52ec SHA512 11a857f3ee5ea18d39af5c67c473fe713f35e56a760b858e960751b1f40cf90c9689e31e52945c6083ea2c68c1a32fdf4299e7f692f663a68ca512e896ef1837 EBUILD blackbox_exporter-0.13.0.ebuild 1472 BLAKE2B cb3f74b15010c1cb39c3eb8e35a17a25b86c2703a549c8631878fd1f5661068d86691689db499848110ec4a6ffafdad3f558f6ae8c84fb7b475a5af0ce8752c8 SHA512 1660db3d6724b1b04a13b6929447b74b9de87c0437e91472388617a1f69493a78e889722785e3ec359cbc49fb4b7b5d6202ca408591a549c5cb6c9808025086d MISC metadata.xml 338 BLAKE2B 117f205ecdd4c05aba1ce92846f59dc7790c9fdae79db5cc1eb912d34a9e1d83eaaea26feb24245a0c5fc4394552705aa7b23171920d9023ca8e4333b3c09650 SHA512 e431b2ef89e797b9cbb290a70683a4392f07559851550dd22f5410f09c979730c8dd35c095f855565df8d72adb42c6e4b9d03882adf37240b0da28cc508ee2ad diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild new file mode 100644 index 000000000000..b2b61cadacfa --- /dev/null +++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit fcaps user golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/blackbox_exporter" +EGIT_COMMIT="v${PV/_rc/-rc.}" +BLACKBOX_EXPORTER_COMMIT="1cfb751" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP" +HOMEPAGE="https://github.com/prometheus/blackbox_exporter" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.11 + dev-util/promu" + +FILECAPS=( + cap_net_raw usr/bin/blackbox_exporter +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${BLACKBOX_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + mkdir -p bin || die + GO111MODULE=on GOPATH="${S}" promu build -v --prefix blackbox_exporter || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin blackbox_exporter/blackbox_exporter + dodoc {README,CONFIGURATION}.md blackbox.yml + insinto /etc/blackbox_exporter + newins example.yml blackbox.yml.example + popd || die + keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter + fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} diff --git a/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated b/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated new file mode 100644 index 000000000000..03eb13a13873 --- /dev/null +++ b/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated @@ -0,0 +1,7 @@ +/var/log/blackbox_exporter/blackbox_exporter.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/app-metrics/burrow_exporter/Manifest b/app-metrics/burrow_exporter/Manifest index 022dcffcae73..6f0e81ff0e72 100644 --- a/app-metrics/burrow_exporter/Manifest +++ b/app-metrics/burrow_exporter/Manifest @@ -1,5 +1,8 @@ +AUX burrow_exporter-0.0.6-fix-metrics.patch 1681 BLAKE2B 6e7d0b1551b5eb26589adc89c7c74206bf72c94f39cd9a0b16642e2325ff51834f5084315a46c7693c4b3eba78f15b3decaf87cce85d6ddf59d1856a63ff4699 SHA512 21f6d4daab767be166233b2cc4b8f3de17fa6148ffe0e46542e15e7279866af97107213076f13116cfb0d39c2287bf7709399ae054e79f2b9b581ba7477684dc +AUX burrow_exporter-0.0.6-skippable-metrics.patch 9149 BLAKE2B 4d023b3f1f32f973a49d0bc548adbe4211c4771c577baa52be5f99f5d6bc465d6301141a87321bf4deba66002885e60787738c81839257e6b900d70c2bf7fc1b SHA512 d8c8a3e71738b779f59a2811a2db144ff0d4fb757f9c69734ee2b5d4a5f700dcc000d35b09a8fd75f4c5eb3e204242cb8e40eefbcd7b2ea2f6a4e78add85e57a AUX burrow_exporter.confd 59 BLAKE2B 1da64f0d5edd03282b102bc089d28d4eaa0280b6eb7f32dfcb1d3caa973d54fcb2639317a9831cd2624221d1dcfb87d5a8d78e7f303a8e4d298eedfbbb65ac2d SHA512 92f65538204e46a9338a285638d828505f0f8d5f32ee05772025ad2f158e92dee89234f738f151a067ecd371d1cd89e81644de1edfa92bd4678d4938ecc92e3b AUX burrow_exporter.initd 647 BLAKE2B 136c8121f69cd658c5eae1b1d4ec7f6844512654756b07ff9aa35ac3a0235be5a92bc3234605fd33688151a25db78bce6919843d641d66c6f352ceadfde19f60 SHA512 934ffaa3cf00c3029fa2e762cedbef162d63dae58ac7e2763f83ffbff5aeab54bf1d271ae2e5478cacd43fe4bb55e808002c3016fc589eddd762ba7ff6df09fc +AUX burrow_exporter.logrotated 103 BLAKE2B 7d4007209998b757d2a7d8cc8857e07bf49a5d39825ebf6bc0c94c3e4b3306dd21209b7964a677a2820b42c4f01551aae0a231c7465377a39a49cc3783140457 SHA512 f27657a460f4457a3eafb5d76747b78ad14be846cee983bac04ed3e997e20f74e172cb907ab33be19c1d70f14f0eed064642ce57d32a276b84475fb8e6b79262 DIST burrow_exporter-0.0.6.tar.gz 9966 BLAKE2B 26db3f53fd276073d709a416dd11f29008ee467c8e6deed2e90500044089e4fac34e035fec06323abaf50bec2da6291599799c91ffe140459a701b83ccdbb3c9 SHA512 faccb828a3044474bbd3eff1fc0a6ec163b5bc332a61ee0327832b65ae83ac202ce1f70f6519e2d3014275e995d8f6682245a52cb768491f0159df2f7198892b DIST github.com-Sirupsen-logrus-ba1b36c82c5e05c4f912a88eab0dcd91a171688f.tar.gz 26698 BLAKE2B 10f98819cf6e8e64e22ead564d8460414818cdfda5159a3e751a6457e531d8b8c34eee8fad5c35db187d52400a93ec7240bbea8821ac39360708b61940c33fcf SHA512 7152a9e355e21de7980a28e915b712103ae1eaaa4142a5c37db00d8d30415cb2ecacf53bbe178cce49a1b9c4ad57336e8438a40f0bb92dd20a2bcabb1980013b DIST github.com-beorn7-perks-4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9.tar.gz 10593 BLAKE2B 057738aefe26d3d42ba1bc0906675403512a7bab1161bc1015f6d833296778f2236cb2b99bbebd5c7db2384634fef62d2afbfc8dd59bfb1320bc6184105aa437 SHA512 ecac8d361b4695b1fc32a9aaf9e0785201d1bebbf270226540e2c3fe193ad21f4fe8aed4e01937bd1e7273ca394455ca6fd7cf29418710f279cbb8eb92939e32 @@ -10,5 +13,6 @@ DIST github.com-prometheus-client_model-6f3806018612930941127f2a7c6c453ba2c527d2 DIST github.com-prometheus-common-13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207.tar.gz 58775 BLAKE2B 05173a41bfaa944e2096b4360e0974f921934b6e6ec8b34cb7322158cabaa73e60ab091d4a5bcc9696b29995e7f71bdf55cb832af140a153452cf66c85c9a3cd SHA512 9d4a937d12a738a7802102415cb061e0009ed43f901420560637e13f7952c26dab52e67011d8b1f8ffe474e223198a23becb65a6eb07cee1be9f6b1add566fd4 DIST github.com-prometheus-procfs-65c1f6f8f0fc1e2185eb9863a3bc751496404259.tar.gz 34890 BLAKE2B f0284354e3782e07371825b3fd6136a5fc516dae97218c90ac333ce749f87b435a55c6545691a7b71f90b98563fdba5f96c238007ee8187d98297edce1124cd5 SHA512 47cafa8b7a4f9496e1cfd6e2d24ae882ed3ac21a2417eb2ece2cfaa2e391d32b60d2ec8c3860988d8fe3af8bfa6d1430e938e5da1331a7e1df2828753dac82bd DIST github.com-urfave-cli-ab403a54a148f2d857920810291539e1f817ee7b.tar.gz 56233 BLAKE2B e65241a10240c98eae5909a29ea63036583a073c290f613cac1d081534760bb4f0e15c2e02bd5693bae036901f9b029099ebea7679655da14b415332b0a3a93b SHA512 c4af60825c3209850b6a5ce38a86ac0b8cd9bfdbe6ef83dc4a52cb2842465fb12f96a81631646135c0571f404d891867bd401a2182ab3f3586e8b86090648bcc +EBUILD burrow_exporter-0.0.6-r1.ebuild 1918 BLAKE2B 198811c126a7f406a9cd584ed75509346b9a6a042a03393382ab74bf767cb42bee316392572f64f32137a27577c048ae583f63c392095b65510cac5cc36d4517 SHA512 632460fbefa377fb5d471100d7ded4db4e8a47408059782e239c569b2e42293ec216062c4cf874d414c81ca33bb51cbbf0a3fd517645f2057076c2995160f129 EBUILD burrow_exporter-0.0.6.ebuild 1735 BLAKE2B 5f978575201c38acab7f45c8b501880122f847fa7d14024df6c2419ec5f2f4c5911579931a61740e197d4ca77a622e6172fac5e07df417f3155b35bd7aada5c0 SHA512 29f7a14a4ff7e0cc1047e21f198ca538e7b986ba4e6f037c0f5f44014fe5321900fdb68c3f16bc3fa2a25544213ddde217cb49e8d6ed9f7bf78d0bd69b2235f4 MISC metadata.xml 332 BLAKE2B 6ea248bd017a37262531f051d02125e69d6e948c1e612094a9974b6d7709ee5a558d2f6fa12fcfcb583631eae8dd0f013c7d425fd47561daa6180ec3aed85130 SHA512 8156377de444b33046495fccacc530f09e8b4d45fc6a47d74c3a69a70ee9ce367a192c7e62e0f962e2867d120ff60408366ed00faa60a52373d42face2a2fcf5 diff --git a/app-metrics/burrow_exporter/burrow_exporter-0.0.6-r1.ebuild b/app-metrics/burrow_exporter/burrow_exporter-0.0.6-r1.ebuild new file mode 100644 index 000000000000..b6a97d6ef8fd --- /dev/null +++ b/app-metrics/burrow_exporter/burrow_exporter-0.0.6-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_VENDOR=( + "github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9" + "github.com/golang/protobuf 2bba0603135d7d7f5cb73b2125beeda19c09f4ef" + "github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c" + "github.com/prometheus/client_golang 42552c195dd3f3089fbf9cf26e139da150af35aa" + "github.com/prometheus/client_model 6f3806018612930941127f2a7c6c453ba2c527d2" + "github.com/prometheus/common 13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207" + "github.com/prometheus/procfs 65c1f6f8f0fc1e2185eb9863a3bc751496404259" + "github.com/Sirupsen/logrus ba1b36c82c5e05c4f912a88eab0dcd91a171688f" + "github.com/urfave/cli ab403a54a148f2d857920810291539e1f817ee7b" +) +inherit user golang-build golang-vcs-snapshot + +EGO_PN="github.com/jirwin/burrow_exporter" +EXPORTER_COMMIT="01f0ef9" +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus exporter for Burrow" +HOMEPAGE="https://github.com/jirwin/burrow_exporter" +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + pushd src/${EGO_PN} || die + eapply "${FILESDIR}"/${P}-skippable-metrics.patch "${FILESDIR}"/${P}-fix-metrics.patch + sed -i -e "s/0.0.5/${PV}/" burrow-exporter.go || die + popd || die + default +} + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" go build -v -o bin/burrow_exporter || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin bin/burrow_exporter + dodoc README.md + popd || die + keepdir /var/log/burrow_exporter + fowners ${PN}:${PN} /var/log/burrow_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" ${PN} +} diff --git a/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-fix-metrics.patch b/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-fix-metrics.patch new file mode 100644 index 000000000000..0d5a6f40dc70 --- /dev/null +++ b/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-fix-metrics.patch @@ -0,0 +1,49 @@ +From a40362c95ca5534040d8c29a23b40168a9d70015 Mon Sep 17 00:00:00 2001 +From: Guillaume Herail +Date: Wed, 16 Jan 2019 18:03:51 +0100 +Subject: [PATCH] fix(KafkaConsumerPartitionLag): Use proper current lag + +Before this fix, the latest committed lag was used for the metric, it +now uses the current lag on the partition. + +Fixes #26 +--- + burrow_exporter/client.go | 11 ++++++----- + burrow_exporter/exporter.go | 2 +- + 2 files changed, 7 insertions(+), 6 deletions(-) + +diff --git a/burrow_exporter/client.go b/burrow_exporter/client.go +index daaf84f..f4dc656 100644 +--- a/burrow_exporter/client.go ++++ b/burrow_exporter/client.go +@@ -70,11 +70,12 @@ type ConsumerGroupStatus struct { + } + + type Partition struct { +- Topic string `json:"topic"` +- Partition int32 `json:"partition"` +- Status string `json:"status"` +- Start Offset `json:"start"` +- End Offset `json:"end"` ++ Topic string `json:"topic"` ++ Partition int32 `json:"partition"` ++ Status string `json:"status"` ++ Start Offset `json:"start"` ++ End Offset `json:"end"` ++ CurrentLag int64 `json:"current_lag"` + } + + type ConsumerGroupStatusResp struct { +diff --git a/burrow_exporter/exporter.go b/burrow_exporter/exporter.go +index 8b48b35..153ccbb 100644 +--- a/burrow_exporter/exporter.go ++++ b/burrow_exporter/exporter.go +@@ -45,7 +45,7 @@ func (be *BurrowExporter) processGroup(cluster, group string) { + "group": status.Status.Group, + "topic": partition.Topic, + "partition": strconv.Itoa(int(partition.Partition)), +- }).Set(float64(partition.End.Lag)) ++ }).Set(float64(partition.CurrentLag)) + } + + if !be.skipPartitionCurrentOffset { diff --git a/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-skippable-metrics.patch b/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-skippable-metrics.patch new file mode 100644 index 000000000000..1b9c84599eb0 --- /dev/null +++ b/app-metrics/burrow_exporter/files/burrow_exporter-0.0.6-skippable-metrics.patch @@ -0,0 +1,273 @@ +From 50db40e49750378e22e2b638754ff07ff29f5362 Mon Sep 17 00:00:00 2001 +From: NovaPS6 +Date: Wed, 8 Aug 2018 14:43:33 +0100 +Subject: [PATCH] make all metrics skippable + +Change import back to jirwin +--- + .gitignore | 1 + + burrow-exporter.go | 67 +++++++++++++++++------ + burrow_exporter/exporter.go | 102 +++++++++++++++++++++--------------- + 3 files changed, 113 insertions(+), 57 deletions(-) + +diff --git a/.gitignore b/.gitignore +index 502219c..a8e0d62 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -18,3 +18,4 @@ + burrow-exporter + dist/ + vendor/ ++.idea/ +diff --git a/burrow-exporter.go b/burrow-exporter.go +index 1e60d67..b4e871b 100644 +--- a/burrow-exporter.go ++++ b/burrow-exporter.go +@@ -14,7 +14,7 @@ import ( + "github.com/jirwin/burrow_exporter/burrow_exporter" + ) + +-var Version = "0.0.4" ++var Version = "0.0.5" + + func main() { + app := cli.NewApp() +@@ -22,36 +22,61 @@ func main() { + app.Name = "burrow-exporter" + app.Flags = []cli.Flag{ + cli.StringFlag{ +- Name: "burrow-addr", +- Usage: "Address that burrow is listening on", ++ Name: "burrow-addr", ++ Usage: "Address that burrow is listening on", + EnvVar: "BURROW_ADDR", + }, + cli.StringFlag{ +- Name: "metrics-addr", +- Usage: "Address to run prometheus on", ++ Name: "metrics-addr", ++ Usage: "Address to run prometheus on", + EnvVar: "METRICS_ADDR", + }, + cli.IntFlag{ +- Name: "interval", +- Usage: "The interval(seconds) specifies how often to scrape burrow.", ++ Name: "interval", ++ Usage: "The interval(seconds) specifies how often to scrape burrow.", + EnvVar: "INTERVAL", + }, + cli.IntFlag{ +- Name: "api-version", +- Usage: "Burrow API version to leverage", +- Value: 2, ++ Name: "api-version", ++ Usage: "Burrow API version to leverage", ++ Value: 2, + EnvVar: "API_VERSION", + }, + cli.BoolFlag{ +- Name: "skip-partition-status", +- Usage: "Skip exporting the per-partition status", ++ Name: "skip-partition-status", ++ Usage: "Skip exporting the per-partition status", + EnvVar: "SKIP_PARTITION_STATUS", + }, + cli.BoolFlag{ +- Name: "skip-group-status", +- Usage: "Skip exporting the per-group status", ++ Name: "skip-group-status", ++ Usage: "Skip exporting the per-group status", + EnvVar: "SKIP_GROUP_STATUS", + }, ++ cli.BoolFlag{ ++ Name: "skip-partition-lag", ++ Usage: "Skip exporting the partition lag", ++ EnvVar: "SKIP_PARTITION_LAG", ++ }, ++ cli.BoolFlag{ ++ Name: "skip-partition-current-offset", ++ Usage: "Skip exporting the current offset per partition", ++ EnvVar: "SKIP_PARTITION_CURRENT_OFFSET", ++ }, ++ cli.BoolFlag{ ++ Name: "skip-partition-max-offset", ++ Usage: "Skip exporting the partition max offset", ++ EnvVar: "SKIP_PARTITION_MAX_OFFSET", ++ }, ++ cli.BoolFlag{ ++ Name: "skip-total-lag", ++ Usage: "Skip exporting the total lag", ++ EnvVar: "SKIP_TOTAL_LAG", ++ }, ++ cli.BoolFlag{ ++ Name: "skip-topic-partition-offset", ++ Usage: "Skip exporting topic partition offset", ++ EnvVar: "SKIP_TOPIC_PARTITION_OFFSET", ++ }, + } + + app.Action = func(c *cli.Context) error { +@@ -76,8 +101,18 @@ func main() { + + ctx, cancel := context.WithCancel(context.Background()) + +- exporter := burrow_exporter.MakeBurrowExporter(c.String("burrow-addr"), c.Int("api-version"), +- c.String("metrics-addr"), c.Int("interval"), c.Bool("skip-partition-status"), c.Bool("skip-group-status")) ++ exporter := burrow_exporter.MakeBurrowExporter( ++ c.String("burrow-addr"), ++ c.Int("api-version"), ++ c.String("metrics-addr"), ++ c.Int("interval"), ++ c.Bool("skip-partition-status"), ++ c.Bool("skip-group-status"), ++ c.Bool("skip-partition-lag"), ++ c.Bool("skip-partition-current-offset"), ++ c.Bool("skip-partition-max-offset"), ++ c.Bool("skip-total-lag"), ++ c.Bool("skip-topic-partition-offset")) + go exporter.Start(ctx) + + <-done +diff --git a/burrow_exporter/exporter.go b/burrow_exporter/exporter.go +index 7adc398..8b48b35 100644 +--- a/burrow_exporter/exporter.go ++++ b/burrow_exporter/exporter.go +@@ -16,12 +16,17 @@ import ( + ) + + type BurrowExporter struct { +- client *BurrowClient +- metricsListenAddr string +- interval int +- wg sync.WaitGroup +- skipPartitionStatus bool +- skipConsumerStatus bool ++ client *BurrowClient ++ metricsListenAddr string ++ interval int ++ wg sync.WaitGroup ++ skipPartitionStatus bool ++ skipConsumerStatus bool ++ skipPartitionLag bool ++ skipPartitionCurrentOffset bool ++ skipPartitionMaxOffset bool ++ skipTotalLag bool ++ skipTopicPartitionOffset bool + } + + func (be *BurrowExporter) processGroup(cluster, group string) { +@@ -34,19 +39,23 @@ func (be *BurrowExporter) processGroup(cluster, group string) { + } + + for _, partition := range status.Status.Partitions { +- KafkaConsumerPartitionLag.With(prometheus.Labels{ +- "cluster": status.Status.Cluster, +- "group": status.Status.Group, +- "topic": partition.Topic, +- "partition": strconv.Itoa(int(partition.Partition)), +- }).Set(float64(partition.End.Lag)) +- +- KafkaConsumerPartitionCurrentOffset.With(prometheus.Labels{ +- "cluster": status.Status.Cluster, +- "group": status.Status.Group, +- "topic": partition.Topic, +- "partition": strconv.Itoa(int(partition.Partition)), +- }).Set(float64(partition.End.Offset)) ++ if !be.skipPartitionLag { ++ KafkaConsumerPartitionLag.With(prometheus.Labels{ ++ "cluster": status.Status.Cluster, ++ "group": status.Status.Group, ++ "topic": partition.Topic, ++ "partition": strconv.Itoa(int(partition.Partition)), ++ }).Set(float64(partition.End.Lag)) ++ } ++ ++ if !be.skipPartitionCurrentOffset { ++ KafkaConsumerPartitionCurrentOffset.With(prometheus.Labels{ ++ "cluster": status.Status.Cluster, ++ "group": status.Status.Group, ++ "topic": partition.Topic, ++ "partition": strconv.Itoa(int(partition.Partition)), ++ }).Set(float64(partition.End.Offset)) ++ } + + if !be.skipPartitionStatus { + KafkaConsumerPartitionCurrentStatus.With(prometheus.Labels{ +@@ -57,18 +66,22 @@ func (be *BurrowExporter) processGroup(cluster, group string) { + }).Set(float64(Status[partition.Status])) + } + +- KafkaConsumerPartitionMaxOffset.With(prometheus.Labels{ +- "cluster": status.Status.Cluster, +- "group": status.Status.Group, +- "topic": partition.Topic, +- "partition": strconv.Itoa(int(partition.Partition)), +- }).Set(float64(partition.End.MaxOffset)) ++ if !be.skipPartitionMaxOffset { ++ KafkaConsumerPartitionMaxOffset.With(prometheus.Labels{ ++ "cluster": status.Status.Cluster, ++ "group": status.Status.Group, ++ "topic": partition.Topic, ++ "partition": strconv.Itoa(int(partition.Partition)), ++ }).Set(float64(partition.End.MaxOffset)) ++ } + } + +- KafkaConsumerTotalLag.With(prometheus.Labels{ +- "cluster": status.Status.Cluster, +- "group": status.Status.Group, +- }).Set(float64(status.Status.TotalLag)) ++ if !be.skipTotalLag { ++ KafkaConsumerTotalLag.With(prometheus.Labels{ ++ "cluster": status.Status.Cluster, ++ "group": status.Status.Group, ++ }).Set(float64(status.Status.TotalLag)) ++ } + + if !be.skipConsumerStatus { + KafkaConsumerStatus.With(prometheus.Labels{ +@@ -88,12 +101,14 @@ func (be *BurrowExporter) processTopic(cluster, topic string) { + return + } + +- for i, offset := range details.Offsets { +- KafkaTopicPartitionOffset.With(prometheus.Labels{ +- "cluster": cluster, +- "topic": topic, +- "partition": strconv.Itoa(i), +- }).Set(float64(offset)) ++ if !be.skipTopicPartitionOffset { ++ for i, offset := range details.Offsets { ++ KafkaTopicPartitionOffset.With(prometheus.Labels{ ++ "cluster": cluster, ++ "topic": topic, ++ "partition": strconv.Itoa(i), ++ }).Set(float64(offset)) ++ } + } + } + +@@ -208,12 +223,17 @@ func (be *BurrowExporter) mainLoop(ctx context.Context) { + } + + func MakeBurrowExporter(burrowUrl string, apiVersion int, metricsAddr string, interval int, skipPartitionStatus bool, +- skipConsumerStatus bool) *BurrowExporter { ++ skipConsumerStatus bool, skipPartitionLag bool, skipPartitionCurrentOffset bool, skipPartitionMaxOffset bool, skipTotalLag bool, skipTopicPartitionOffset bool) *BurrowExporter { + return &BurrowExporter{ +- client: MakeBurrowClient(burrowUrl, apiVersion), +- metricsListenAddr: metricsAddr, +- interval: interval, +- skipPartitionStatus: skipPartitionStatus, +- skipConsumerStatus: skipConsumerStatus, ++ client: MakeBurrowClient(burrowUrl, apiVersion), ++ metricsListenAddr: metricsAddr, ++ interval: interval, ++ skipPartitionStatus: skipPartitionStatus, ++ skipConsumerStatus: skipConsumerStatus, ++ skipPartitionLag: skipPartitionLag, ++ skipPartitionCurrentOffset: skipPartitionCurrentOffset, ++ skipPartitionMaxOffset: skipPartitionMaxOffset, ++ skipTotalLag: skipTotalLag, ++ skipTopicPartitionOffset: skipTopicPartitionOffset, + } + } diff --git a/app-metrics/burrow_exporter/files/burrow_exporter.logrotated b/app-metrics/burrow_exporter/files/burrow_exporter.logrotated new file mode 100644 index 000000000000..de78d102c0fc --- /dev/null +++ b/app-metrics/burrow_exporter/files/burrow_exporter.logrotated @@ -0,0 +1,7 @@ +/var/log/burrow_exporter/burrow_exporter.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/app-metrics/github-exporter/Manifest b/app-metrics/github-exporter/Manifest index d18e028cb607..6f43c7585cf4 100644 --- a/app-metrics/github-exporter/Manifest +++ b/app-metrics/github-exporter/Manifest @@ -13,5 +13,6 @@ DIST github.com-prometheus-client_model-f287a10.tar.gz 57203 BLAKE2B 2d56b90ced9 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-r1.ebuild 1954 BLAKE2B a50a9672bfef14555fa25592501418745c7d6bfe4046cee56aef5b46bbc4ebe9d1f78992a8546866148ed0019a3219c8de9b5f6431ef57e511f71985c7974c01 SHA512 1ebbfc73d309eeedd0b48765c6b00767efd26d2d00c4edd492617dcaeb86907fe5bc60b4c236780d1736b2ab9a0d74b9c7ba1416e36770e54f042c061b54ffd3 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/github-exporter-04-r1.ebuild b/app-metrics/github-exporter/github-exporter-04-r1.ebuild new file mode 100644 index 000000000000..f61b022c35f9 --- /dev/null +++ b/app-metrics/github-exporter/github-exporter-04-r1.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 user 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/grok_exporter/Manifest b/app-metrics/grok_exporter/Manifest new file mode 100644 index 000000000000..2cffd04f8a51 --- /dev/null +++ b/app-metrics/grok_exporter/Manifest @@ -0,0 +1,12 @@ +AUX grok_exporter.initd 582 BLAKE2B e9501f3b3a50860d2fddc0c0d84854422ae40df6aaac7dffc94fa74989f34287d6bf0b4a8c68a853c6f72c28d4fa532729405c72eb03f18f3f7f9e75ee204298 SHA512 589efbe89ff0655fcc13ea55907da0276f41c6fb9fc20f241365815b6fe8e429f3cf613c88df2b3e086d043f919d7ecdc094691a6271ed7e9e6757ccad60a14d +DIST github.com-beorn7-perks-3a771d992973f24aa725d07868b467d1ddfceafb.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277 +DIST github.com-go-yaml-yaml-51d6538a90f86fe93ac480b35f37b2be17fef232.tar.gz 70766 BLAKE2B 3ea4412e259626b25145feacbe68b529d2bcf353bd098899c3a906d01f75bac5f93ec20967f7261feb388356d7b12fa945ec73822e21e029e38ce7c0b27855e7 SHA512 dec54681845fb5cdb159d44bf91cb703bb38a6af1821566d7b11a0668ee50247f542e3b7bfc21571198f9bda8ff31ce32cf67f98a8c906dee7ea9194643699f9 +DIST github.com-golang-protobuf-347cf4a86c1cb8d262994d8ef5924d4576c5b331.tar.gz 329489 BLAKE2B 828678cee603917e7f4efee2dd0902730a73932b94b12d4f4b35f0fcecaa329cdc39c3fa9926ce3706f86cc52c0aa4984f68ee0943ecc6d9571b0175ff671ab0 SHA512 de4307b91923a6890ab2f8eaf2ed4f7f32a45a4a0cc7b0d6f53ce31c5fe3ed08f378072075456d2c99c89a3b5acbca315814b8e5ec70e6ceb0ca62f7013f618c +DIST github.com-matttproud-golang_protobuf_extensions-c182affec369e30f25d3eb8cd8a478dee585ae7d.tar.gz 37541 BLAKE2B f78899afa1390aca6cb1b412271713c60107771d512ead83482e0bb1716d175b791b4b04bd24b7f469cc1a29176eadcf0545ac3bf166c5b350602420d3c05aec SHA512 141b1b781a4d1c59f5eb1af93c966343b80ed405a5f63774e6cda9f12c34536e892c7a84699d6cf2e9c775457a4c2ad5d5d0b4d302fc25a923ab81d46ad65580 +DIST github.com-prometheus-client_golang-18d13eacc9cce330610a70daf4ed0fef2e846589.tar.gz 133489 BLAKE2B 75ba882c9378d9062ed510af425f39e81e1d980dbd183f4e1228110880b3143cac74fecaa5d224e8516afcab71886041d1fbcff0832c8ab604976bbf34977eb3 SHA512 80142c7e659c3213a0990f1f871b3578b2899b14c5082a04d8eb67048da768203bb7228b2fa33d2f49d0f57596f6ad12fed47b54790a3c16d8a4cd43eb35005d +DIST github.com-prometheus-client_model-56726106282f1985ea77d5305743db7231b0c0a8.tar.gz 57192 BLAKE2B 83bbc3c756f993a8bbf3b3f4bd5437b466b8fddc1f434554f1138eb6a830dd76ac495ceaa8b8a324498b05513c4ae67d571f263cce2de5275d87cadc2bf9691a SHA512 531b3e185f96ef23c8d5791f3caa7ccbb78870811343a4630d79dcf3e217a1f9a176390752cbb427ba3550bebb984e31ade8529a2b56ea93af2ab6b7a2e98320 +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 grok_exporter-0.2.6.tar.gz 478354 BLAKE2B 082331eb7606517fb103af7a74088bae75740ae77d2b1fdeaee87791c4a0be706883ca505cb723f3853d3786692477086183b303de0ad82833499b231fc55909 SHA512 5204974702a8d29cc80fb7857a46f3242c78019d8a37e18e595d4bfc2f64662dbd48f9e0d5cae7b2f4f2390c35b0d621a7212718bf3c88d675601af2977de874 +EBUILD grok_exporter-0.2.6.ebuild 1969 BLAKE2B d990d12db0a4fffa98a7f3f65dfc85c6528b35d66f4453b590e44036e51532287b4fe016f86aa3f42ae5fcfbcffc995578afa22d1b3c6fcb228964923b25d5b0 SHA512 1ea9751684afa57a854262c9073828e8ee28eb7d0abb5f5dc4875bdbfb8a254d1dee93c1b99d7d358d0ca08f5f33efb848f3f76f126164045b78cdc346ed35fc +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/grok_exporter/files/grok_exporter.initd b/app-metrics/grok_exporter/files/grok_exporter.initd new file mode 100644 index 000000000000..d38d0af63ab3 --- /dev/null +++ b/app-metrics/grok_exporter/files/grok_exporter.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Unstructured log data exporter for Prometheus" +config_file="${config_file:-/etc/${RC_SVCNAME}/${RC_SVCNAME}.yml}" +command=/usr/bin/grok_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" +required_files="${config_file}" +command_args="-config \"${config_file}\"" + +depend() { + after net +} diff --git a/app-metrics/grok_exporter/grok_exporter-0.2.6.ebuild b/app-metrics/grok_exporter/grok_exporter-0.2.6.ebuild new file mode 100644 index 000000000000..328fd97b74fd --- /dev/null +++ b/app-metrics/grok_exporter/grok_exporter-0.2.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_PN=github.com/fstab/grok_exporter +EGO_REVISION=81c0afe +EGO_VENDOR=( + "github.com/prometheus/client_model 56726106282f1985ea77d5305743db7231b0c0a8" + "github.com/prometheus/common 2998b132700a7d019ff618c06a234b47c1f3f681" + "github.com/prometheus/client_golang 18d13eacc9cce330610a70daf4ed0fef2e846589" + "github.com/prometheus/procfs b1a0a9a36d7453ba0f62578b99712f3a6c5f82d1" + "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d" + "github.com/golang/protobuf 347cf4a86c1cb8d262994d8ef5924d4576c5b331" + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" + "gopkg.in/yaml.v2 51d6538a90f86fe93ac480b35f37b2be17fef232 github.com/go-yaml/yaml" # branch v2.2.2 +) + +inherit user golang-build golang-vcs-snapshot + +DESCRIPTION="Unstructured log data exporter for Prometheus" +HOMEPAGE="https://github.com/fstab/Grok_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-libs/oniguruma-6.9.0" +RDEPEND=">=dev-libs/oniguruma-6.9.0:=" + +RESTRICT="strip" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + cd src/${EGO_PN} || die + GOPATH="${S}" go build -ldflags=" + -X ${EGO_PN}/exporter.Version=${PV} + -X ${EGO_PN}/exporter.BuildDate=$(date +%Y-%m-%d) + -X ${EGO_PN}/exporter.Branch=master + -X ${EGO_PN}/exporter.Revision=${EGO_REVISION}" || die "compile failed" +} + +src_install() { + cd src/${EGO_PN} || die + dobin ${PN} + dodoc -r *.md example + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} +keepdir /etc/"${PN}" +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "You need to create /etc/${PN}/${PN}.yml" + elog "Please see /usr/share/doc/${PVR} for examples" + fi +} diff --git a/app-metrics/grok_exporter/metadata.xml b/app-metrics/grok_exporter/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /dev/null +++ b/app-metrics/grok_exporter/metadata.xml @@ -0,0 +1,8 @@ + + + + + williamh@gentoo.org + William Hubbs + + diff --git a/app-metrics/process-exporter/Manifest b/app-metrics/process-exporter/Manifest index 01e6bd1bd64c..a39fd40c4d5f 100644 --- a/app-metrics/process-exporter/Manifest +++ b/app-metrics/process-exporter/Manifest @@ -1,4 +1,5 @@ -AUX process-exporter.initd 265 BLAKE2B 9dcda67ec54f4b1576756f209768cb95947e304ed278e60323584ff08880ba1e45108054c84a453b39d85aa2c5a169f85ac28e0ca5b6c4e1b04ce64ccc9db381 SHA512 90a19f4ea330c86b37109d3d2560da50bb40625ec8feeed6d10cfc5e95ee4a6dcf1fba6c359c76727ef9d1c94fec06cc8e480a3392859df8b99347a2b54c4eb2 +AUX process-exporter.initd 443 BLAKE2B 7b1c0475cb3c0c96685b8831578df131661787221e3d9f081b930f0966bdff465218e86d6bf4fe8d5cfb80ed1f8bec3d8b648a002323467408747d0f99d92c4d SHA512 cdebd44d568723de125390453ba169323f7e5b7941a94955c6e45792b573ab57ae41015229b997c32eb093127aaed8bcedde8d46df86396b1e338e5b1f668881 DIST process-exporter-0.4.0.tar.gz 378006 BLAKE2B 053379e8e0cb95f099cebf53289c48c39d6c8ef22c8b0dcf0bd128453e601da98be9205bb5c7cda8a05d5f50addabbcb46f6ece44926da17c1bd8616e452783a SHA512 88f6f0e07bb7f3ea6c593ba359c09ace47eb0830ff0759b1f4dd64219a6c9069dc2891a328a90bdef13ea02efc576fb71de7ff095788b4dd45c2683c90904363 +EBUILD process-exporter-0.4.0-r1.ebuild 737 BLAKE2B abae9e7d078e3ec863cab985588febaaafee2ad556dd7f2ec577732e80af652e66754ed0ca7fb16b03274a620ce146428958509ef77eb4759e2bb499f3847ed1 SHA512 35e294c2d4a6c32fd5d711bcf6a6d5ad9fe5459a0e3281b5ac487519d8b018dfb59b984e38b071b272faac13e29cc18927d0ccffa96666dfac7fed5a6aa845dc 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 index d739825ecdfc..f25eadc2a11f 100644 --- a/app-metrics/process-exporter/files/process-exporter.initd +++ b/app-metrics/process-exporter/files/process-exporter.initd @@ -1,8 +1,12 @@ #!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 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_ARGS}" command_background=yes -pidfile=/var/run/process-exporter.pid +error_log=/var/log/process-exporter/${RC_SVCNAME}.log +output_log=/var/log/process-exporter/${RC_SVCNAME}.log +pidfile=/var/run/${RC_SVCNAME}.pid diff --git a/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild b/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild new file mode 100644 index 000000000000..1ce159062a86 --- /dev/null +++ b/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild @@ -0,0 +1,33 @@ +# 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} + keepdir /var/log/${PN} +} diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest index c5d1e335955f..331114c42ecc 100644 --- a/app-metrics/prometheus/Manifest +++ b/app-metrics/prometheus/Manifest @@ -3,7 +3,9 @@ AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915 DIST prometheus-2.4.3.tar.gz 6095284 BLAKE2B 9b9d54cf8ed61453d63e4b93cd81cd1c08a732b2238830aa1b83b63076205569b8f947a94d0528b910c0958bc77f98605ab3eaf98a1e93d361ea6b431d5df48c SHA512 c86ce48416d32ca4310315dd7195a6ee471244b7a9323ddc49270c2b885bda38c2922047dc8fd7d9b19c9f62f8bc788d30387d38f956cbf04130d7041f9a479b DIST prometheus-2.5.0.tar.gz 6123272 BLAKE2B a84b31e24f4448330af63b64ed56b8c535e790930738c0f00d7ec05ff5b49cd52bcae047cfe3a0470909397562f29662003e5b5ad0a747dc209109e360daa18d SHA512 181ef94b75717d116ae8b1307f7351eb889d153b27316e08e8cffe16cf885dbf43bd0bd4214f05e56bc33bbf53f7864721ab666f5ea4356b37a5987347c6a191 DIST prometheus-2.6.0.tar.gz 6607363 BLAKE2B b9449403c840367b5332e27cf5d76b3becf1abcaaff6b2f2fd48441609b91d969ce078a2a3c4a38cc68b421b8e796561be87858adb77ac780f45650147469596 SHA512 75ae11a49de4277c7b4e49b83d7f34c9eb17b6bde988ab84e735109430361856ae0d33179a678b2cfc88342966a8e393a75062142c6f713f8a974aa8f332691e +DIST prometheus-2.6.1.tar.gz 6612143 BLAKE2B 33dc64406dd45f494720a1ff5f6d09ed4b45b3880b15626ab7455909258addc5d1549d3edbf8af9a374516930b297c5bdb6ef51a78cac3cb338357896c0d71ae SHA512 80bf6afa00b60aa4245a53e275a2b9579a7936609aba4ffacbbe478f34e530208e0498d8c5ea53dd3a940726e05bd6fac19fed3d6d9dd209af565d5368b2340f EBUILD prometheus-2.4.3.ebuild 2018 BLAKE2B 680b446079aa4f6c63973ec7c551e15d3fd413532c0b8e9fe4bd052d818b8d4e0dddc50711660168b8d17e43a6ea9c03f47097f6309fe4a2c7489a7ea1578aa2 SHA512 7188d7761b276ad8b91dfdd45cb68db13d7f4bfb05457a475f3e180e91a3ce150cfadf5cf0ffb6d20eff48f0ae63c5ec8fe9e7fb8fc104c61c9517e1d9ce9285 EBUILD prometheus-2.5.0.ebuild 2019 BLAKE2B a2eb9a001197cedcd08bd09382a7b7fe979bed18fef9140f6c0a1087a06be13cf294808ddbb9a78c69513976679eacdbf52cf5081eddf34eb42c3f2873cb5eb5 SHA512 11e164cd754c917975743f3251cc1e50e9612c14129041c1f69eaee0b32917e58575e68d7e3d801b65d695f2bcd6aa448a4687abde436015ead18d15ed477cf9 EBUILD prometheus-2.6.0.ebuild 2034 BLAKE2B 24a96bf1f7536fe537bea865463c29a5f385adbee87e1597693b9a0d1f7087a5b4a106fa409844c2c80d5308ce67a7612ef636448bccf45e979306f8a60429cf SHA512 276dafc414e4394cbf2f23235f9d6551bfcc55b61c8bf4da1f352870727184ca74806954e3716444b0891f543a803b7f680705ffa5435f742bdca1f68c2d46e9 +EBUILD prometheus-2.6.1.ebuild 2058 BLAKE2B 39d366af15eba910c708c1729592ce9e5c6d461ffc7801f97eb7a7a13c549818ad7f6d5d726312c2dcd4bcf9af7bfedab2ba79680315c4bd33c489655e3caa9d SHA512 75c746cee2e96ac9cda1d4051014193d2f3b0683ac255ffd058c1a56e1898f2959e79a616af7fe149ca7687f48b2c19c935f6a9a7bb637cb17086d6fff6939ef MISC metadata.xml 331 BLAKE2B 80bf59233349fc1fdc6c102fb65ba146bcde2c5c2a6039ec9b9f50f21a36fb1e8c864cba422e721d01216c792ffcf0429a3a840540305442b5e516ac09c03850 SHA512 06fd0da413c0280a902bbdf50e1e0557375d2208021fda3c3081d8a25a4b17ad1ca647d994dd97ba2d838ea5c87148d3ffd13a8a54cb8dc007b45927df8de47a diff --git a/app-metrics/prometheus/prometheus-2.6.1.ebuild b/app-metrics/prometheus/prometheus-2.6.1.ebuild new file mode 100644 index 000000000000..1c17c175edeb --- /dev/null +++ b/app-metrics/prometheus/prometheus-2.6.1.ebuild @@ -0,0 +1,70 @@ +# 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 + +EGO_PN="github.com/prometheus/prometheus" +MY_PV=${PV/_rc/-rc.} +EGIT_COMMIT="v${MY_PV}" +PROMETHEUS_COMMIT="b639fe1" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus monitoring system and time series database" +HOMEPAGE="https://github.com/prometheus/prometheus" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND=" + >=dev-lang/go-1.10 + dev-util/promu" + +PROMETHEUS_HOME="/var/lib/prometheus" + +RESTRICT="test" + +pkg_setup() { + enewgroup prometheus + enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin promtool prometheus + dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} + insinto /etc/prometheus + doins documentation/examples/prometheus.yml + insinto /usr/share/prometheus + doins -r console_libraries consoles + dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries + dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles + popd || die + + newinitd "${FILESDIR}"/prometheus-3.initd prometheus + newconfd "${FILESDIR}"/prometheus.confd prometheus + keepdir /var/log/prometheus /var/lib/prometheus + fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus +} + +pkg_postinst() { + if has_version ' + + + + williamh@gentoo.org + William Hubbs + + 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 000000000000..6f5c5c9330ff --- /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} +} diff --git a/app-metrics/snmp_exporter/Manifest b/app-metrics/snmp_exporter/Manifest index 5cb3d23d23a4..581301940169 100644 --- a/app-metrics/snmp_exporter/Manifest +++ b/app-metrics/snmp_exporter/Manifest @@ -1,11 +1,8 @@ AUX snmp_exporter.confd 98 BLAKE2B 3058ed314dd66772e0d299f135cc1ddb4f3c1f47403848fd249e949173430673991a12e794c74bfb53d0f25f313513d2d70c03d589b6d947659d03e33e6dea8a SHA512 e757dd327252ffd29a65170837aea147128d8effee3d88ac4f0474efffaa10748b51bfbecab999605284030a3026b13ce3ce2c1a7ec347a6ff191e44040d84aa AUX snmp_exporter.initd 591 BLAKE2B 103fec1c2e4ad46bf86893faaaf23bd64c7f22ecc905b059e31199c08d610d58852f678d18826cb06f51beab65c8777f49a05a005ad35b77dcfc3e5eef398926 SHA512 903fbcf43a737d2823ab74e954f40134a64414cc1e79a14c78ad51682baa52c3443e85e94ec1abb294753c93a55483c148239e738b72c03bcdc7d4a595580f41 -DIST snmp_exporter-0.11.0.tar.gz 3631252 BLAKE2B 9786a17d667f8e6d45691f9df099f67ce103fbb93c9069ca497e59ff9207de05335fe3fac56d3d3bc0617069eb26a9c5b5682a8ec65c78d7e44303002427e9fa SHA512 a5d671d1bf2a98bbdb6ff85ac84ca5fe8da8d075bb1133aae650e73c45770be0403bcfea93595b2f5bc75b2e50cf96ccada0407d6956b4b5d1dc5b7ff604254a -DIST snmp_exporter-0.12.0.tar.gz 3631641 BLAKE2B 4a1be9f51ffd9c2bc7a2eeb853d30499ae967e53980f81a3b14e9d0a201f33b7f3eec76711a4f3d8d54f5f07b74f1f66aab11093e7c0ab076f544da2ac8399f8 SHA512 9da5e4c43bf59562541992456c046063874860f2e7a24f0693b2f5655e0eb6eacd18734a4c932fce01bb535ac7530d71234bfa9d977fcbf15a1468f642e1d157 +AUX snmp_exporter.logrotated 99 BLAKE2B b0e459df102728238b137443ced2cf717ace780d83caaa7f18117ca8605453e8f325a48f8a4375956209feac210dc452da9cd0a267cf2d663b64f0a2c80f1eb5 SHA512 c1e1264b5a5612b4794c49613b79826245d3d31db65c1541c3ddfb41872993e7039fb0a84f25260d92a78e8e20005560bdd5e41ee6373e85f8f5e866726c9af4 DIST snmp_exporter-0.13.0.tar.gz 4096479 BLAKE2B a41ad876ca73a997bc48ac6fcdbc3ca01ff1c689f2f908cf14874f948a50ecd846a2996fc0cbf7d86a473fb80e42e15a7aca1c1b57f2cb3ebfa68a62db8d13ac SHA512 6e4a607cb58e6721acfd77b570dc62589cba5b23d250c9f654659632c97039156869722e1e43bec2b0656f08021ff89b4089f6b91ef28229964f32a34e0067f3 DIST snmp_exporter-0.14.0.tar.gz 1458373 BLAKE2B 3251022b236b1da7c675fff1119bf358a7b19bec02c552357dde689654e655f7ab5569c5580db8d8cb587860dfb18a5111220bcb07041488ff2d02fe4d204d44 SHA512 58439e9ef8f05e48ebfb4ea82d42568e40968224e609485960f8a81c6e349ca18d16ec3f4eee469dfaa0b9fd50feb28c1e6a6a988fb251485748f10dbc4f8d12 -EBUILD snmp_exporter-0.11.0.ebuild 1253 BLAKE2B e46a95e5164e369949a3087ce4ad6208e4353b5424961e419a3f289a859ffb6dcf621221aff432818815e4742e500aa8b82d90e75d6ed83adfb6cc2a6b6d64b5 SHA512 b762c4e488fc6c97811e1f7e9e34d78cdab6a354a03f61302f59543e33e24289a972b30f279a7b4f727487d4f88b7fc2cae0919ff1025053cba2c06f60e4f4a8 -EBUILD snmp_exporter-0.12.0.ebuild 1394 BLAKE2B b69ab04c0348d27e01dd6961501aa986c7c16eddb83e1b1a9846d3718a4c89d812f6d455434c17be51319548f2e5e19a5bf03baf1ee90bf861cf68e5537e2328 SHA512 a0b7918b8529b92d230a966a73ba9d53cfd051877d537c23985401c9d9bacab67631be91bb5477370771ee53dbd84fa2c0d5ccfb4953720ba20c23fbfb3fd99a EBUILD snmp_exporter-0.13.0.ebuild 1394 BLAKE2B 5bf4dde1a95b79892dd6ab7ebd26e714906e5634a9cd901cbb86b58dd03f4053c955294bed84cc41e4f3c23fb415eb9ae06e20632d101aff4145001de9e421b9 SHA512 8b2ded50a44003041fe7fc0ecb6bea1ce4f21e45136ddfe3283697dcda5f26ad85f45bfb2c8a90e77226f5791d1a091f0725b91db716985eb886049ecf62bc4d -EBUILD snmp_exporter-0.14.0.ebuild 1441 BLAKE2B 51283d6b09e44ce3cf17976dc56171e72d1d787fe7bbe18fc92ed3c61f455e8b7174e872f887ca9f0dbae2fcf3d0350d5349be62e1f91f0e4008cfe60da096b9 SHA512 32ac3a9675d62aac7ec1e1169228abf2b91b66fa3f12a92cdd5841f3b68ff712a93e94bd2e715bbf01e032555867d07c0cb422c54cc35e3259b14c5cc82ea7a0 +EBUILD snmp_exporter-0.14.0-r2.ebuild 1562 BLAKE2B 03c30a5877954cf964d64ca970cab73169d4fdbf072a2c8f9dc3125855767d6b7febea3a4591e72619de6ab554908bd8b891b8ff2d8feafac6a08908aef5d1f6 SHA512 1d5dd0f289a0833ad4ab8dc188b1677bad9e7a4ddcf363e92ae4ed4613ab4b86c443b70080aca3a66f9c99add199295c439a5f8128894e033420d47016abbedf MISC metadata.xml 334 BLAKE2B a805d1d3f519c6ac1ef9c7f2cb5a0947740e6fe9a37fc77490e2011a27dae8ff981b3e482a55c117553eaa60f0e3c8d017d867c4fe082c8ebdc4e4bdac22f750 SHA512 7fd3e4314022bf2ff86bd01f335d5c4402676970b9810575225aff3d40bd5bdc9ffc27b438c880dc0a665cf3873502b969dfb30644b3c106278fd353820d6599 diff --git a/app-metrics/snmp_exporter/files/snmp_exporter.logrotated b/app-metrics/snmp_exporter/files/snmp_exporter.logrotated new file mode 100644 index 000000000000..a34537f58c3e --- /dev/null +++ b/app-metrics/snmp_exporter/files/snmp_exporter.logrotated @@ -0,0 +1,7 @@ +/var/log/snmp_exporter/snmp_exporter.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/app-metrics/snmp_exporter/snmp_exporter-0.11.0.ebuild b/app-metrics/snmp_exporter/snmp_exporter-0.11.0.ebuild deleted file mode 100644 index 36093bab9691..000000000000 --- a/app-metrics/snmp_exporter/snmp_exporter-0.11.0.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/prometheus/snmp_exporter" -EGIT_COMMIT="v${PV/_rc/-rc.}" -SNMP_EXPORTER_COMMIT="e459171" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus exporter for snmp metrics" -HOMEPAGE="https://github.com/prometheus/snmp_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0" -SLOT="0" -IUSE="" - -DEPEND="dev-util/promu" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" 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/snmp_exporter - dodoc {README,CONTRIBUTING}.md - insinto /etc/snmp_exporter - newins snmp.yml snmp.yml.example - popd || die - keepdir /var/lib/snmp_exporter /var/log/snmp_exporter - fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} diff --git a/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild b/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild deleted file mode 100644 index ee90f5490eb2..000000000000 --- a/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/prometheus/snmp_exporter" -EGIT_COMMIT="v${PV/_rc/-rc.}" -SNMP_EXPORTER_COMMIT="26b3c85" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus exporter for snmp metrics" -HOMEPAGE="https://github.com/prometheus/snmp_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0" -SLOT="0" -IUSE="" - -DEPEND="dev-util/promu - net-analyzer/net-snmp" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" 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 - pushd generator || die - GOPATH="${S}" go build -o ../bin/generator . || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin bin/* - dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml - insinto /etc/snmp_exporter - newins snmp.yml snmp.yml.example - popd || die - keepdir /var/lib/snmp_exporter /var/log/snmp_exporter - fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} diff --git a/app-metrics/snmp_exporter/snmp_exporter-0.14.0-r2.ebuild b/app-metrics/snmp_exporter/snmp_exporter-0.14.0-r2.ebuild new file mode 100644 index 000000000000..b6d3bb792c75 --- /dev/null +++ b/app-metrics/snmp_exporter/snmp_exporter-0.14.0-r2.ebuild @@ -0,0 +1,55 @@ +# 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 + +EGO_PN="github.com/prometheus/snmp_exporter" +EGIT_COMMIT="v${PV/_rc/-rc.}" +SNMP_EXPORTER_COMMIT="da73490" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus exporter for snmp metrics" +HOMEPAGE="https://github.com/prometheus/snmp_exporter" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.11 + dev-util/promu + net-analyzer/net-snmp" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + GO111MODULE=on GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v || die + pushd generator || die + GO111MODULE=on GOPATH="${S}" GOCACHE="${T}"/go-cache go build -mod=vendor -o ../bin/generator . || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin bin/generator snmp_exporter + dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml + insinto /etc/snmp_exporter + newins snmp.yml snmp.yml.example + popd || die + keepdir /var/lib/snmp_exporter /var/log/snmp_exporter + fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} diff --git a/app-metrics/snmp_exporter/snmp_exporter-0.14.0.ebuild b/app-metrics/snmp_exporter/snmp_exporter-0.14.0.ebuild deleted file mode 100644 index 4038386446d1..000000000000 --- a/app-metrics/snmp_exporter/snmp_exporter-0.14.0.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/prometheus/snmp_exporter" -EGIT_COMMIT="v${PV/_rc/-rc.}" -SNMP_EXPORTER_COMMIT="da73490" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus exporter for snmp metrics" -HOMEPAGE="https://github.com/prometheus/snmp_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0" -SLOT="0" -IUSE="" - -DEPEND=">=dev-lang/go-1.11 - dev-util/promu - net-analyzer/net-snmp" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - mkdir -p bin || die - GO111MODULE=on GOPATH="${S}" promu build -v --prefix bin || die - pushd generator || die - GO111MODULE=on GOPATH="${S}" go build -o ../bin/generator . || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin bin/* - dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml - insinto /etc/snmp_exporter - newins snmp.yml snmp.yml.example - popd || die - keepdir /var/lib/snmp_exporter /var/log/snmp_exporter - fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} -- cgit v1.2.3