summaryrefslogtreecommitdiff
path: root/app-metrics
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-16 02:01:58 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-16 02:01:58 +0000
commite07c6f9648d478943b5ecd6f1c42cc91cae0f547 (patch)
tree2c56c6944fb4016ee510ee97a1a158baf49edfe4 /app-metrics
parent16a4365c3b854e62b50726456ddb29bb78fd5038 (diff)
gentoo auto-resync : 16:12:2024 - 02:01:58
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/Manifest.gzbin7288 -> 7287 bytes
-rw-r--r--app-metrics/redis_exporter/Manifest3
-rw-r--r--app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild59
3 files changed, 62 insertions, 0 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz
index eb891a52e5cc..9d94978352d9 100644
--- a/app-metrics/Manifest.gz
+++ b/app-metrics/Manifest.gz
Binary files differ
diff --git a/app-metrics/redis_exporter/Manifest b/app-metrics/redis_exporter/Manifest
index 8c98ec06bd6b..3c43f7225567 100644
--- a/app-metrics/redis_exporter/Manifest
+++ b/app-metrics/redis_exporter/Manifest
@@ -4,5 +4,8 @@ AUX redis_exporter.logrotated 101 BLAKE2B 323e088953e483d4138836bd67db896f1b9aa9
AUX redis_exporter.service 445 BLAKE2B 40b006933b7c221171872c7f5f50eb07db0a551169eddd6aca5848e06bac78a6db6683b177e04caff91e3c52bf7e8bdbbd96ff98b6489b6b1abe2a8973b75a2f SHA512 aee1651eeaa61a9a46fcd041c8616e3db85e160f270da69272a18ec5e2e664baf8bc6dc321c04e87e527a6fef63d54f36bb6903e58e376b76c104c3e1ce3818b
DIST redis_exporter-1.61.0-deps.tar.xz 815816 BLAKE2B b57f1d3094e3e03f990a5b26b75d95621d55cdd519882689c640e90b76750b4f7de7d48ebc7dd8456af33e14be14a07644211921667d2ba6b16a5f2567fc8430 SHA512 176442e32ec79f8621f57712a2658398f9481f0ddb1c104881305f6cfa36b74833b53078355d7fdd5e4a3d13f546fdfb844d5faf7dc5e38763f7f17228de4d68
DIST redis_exporter-1.61.0.tar.gz 82438 BLAKE2B fe62e6c56206718eaf908de913dcb80dd9e27825dfc74b2f9bef3d4c914b75cfe0223924b852e8b99421ccbd0a3618bc9f9a0aea8c9a7733bcb95221731f7f97 SHA512 2528be4680b5cb2b1a1077a3a28ddac8f5a8a4a2b936504553cb218e8c53f8a9d9e52a9266c247f85bda03ae76eec90dbc9ab9bcc8df828d5850538e818d8188
+DIST redis_exporter-1.67.0-deps.tar.xz 955620 BLAKE2B d319e605a8685ec2a8dc441d42346009c019eabb385c758d8a7f09bff37ebe6c158f9a04353fdac51821b54dcdbee873bc747ae008d3dc2148e153eaeaa154d8 SHA512 e1dae9c1e941aaff88769008d70811c22d4ec2946076d43b74269a5fb6b1b12aa8bc0c73e114cf9ec9ecafe6b9af6ef8b0236fe6b3788bdfe7f94241785c6bfd
+DIST redis_exporter-1.67.0.tar.gz 87552 BLAKE2B d97f181f95b8ac44292892c6df031762fcea79eb8a06a224346152631ce18a5229d9ef14b53893709b83933053a8e47bedff52040a07849704b29961b1f69b54 SHA512 5acb905cf8b41c95013d917754837066e4c68535414c1459b985cea901c4cb1ab347be5715fec9d1306810915c4bcac2e4aea4a9fbf64403921b5ef30c6ab1a2
EBUILD redis_exporter-1.61.0.ebuild 1559 BLAKE2B 59726ae4993cb1c4a8931b2e6396343db010f048fb3fce62473de87366f7d6c1aabb11faa7de9f8390560caedcc4ef672fedf7994edf63737950590cd3dec42d SHA512 ec2a69fb921f8ed21c608f26ff5604173a98e8691165770b3cdb0019360d99f6fae3ef6bc3adab4cf23973184b30680e14bef99613c1aa64b295253742f03603
+EBUILD redis_exporter-1.67.0.ebuild 1614 BLAKE2B bef0353373b78e8fc576efdc6958430b245956bd86294ef22c10f669054e3ae582da7bbd8427c2c43696b48a00f3b75a830ac46716d8412fc21b590637889d5f SHA512 96fa96fa19182753c31f511aba2ef65c35da6374aba9110e095a3f80606bd32b4e68a4530c864cf01d96338b3738b138cd873de8c534dc7f9ee8d4479aa20086
MISC metadata.xml 334 BLAKE2B 7d6929da47dbf9ef238ac9274d55f9601753012762d4c8bb3e76b13f09a8d35d14a7ce55a42cbc76414ac3f0ddae29ff886d6b04459c523976f343f494ec3bfa SHA512 68d4a121e99cf1a3cbbb5983b112ffc700025b3db6f13c4dbafec379905c29733443eee0296fdde923b4a3411f880615e35b44a7b574aec5d679159866f3f36b
diff --git a/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild b/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild
new file mode 100644
index 000000000000..9c0c9e913b87
--- /dev/null
+++ b/app-metrics/redis_exporter/redis_exporter-1.67.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd
+EGIT_COMMIT=e2bb7fd6af3b950efa3267e4b932531098dc06b0
+
+DESCRIPTION="Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x and 4.x"
+HOMEPAGE="https://github.com/oliver006/redis_exporter"
+SRC_URI="https://github.com/oliver006/redis_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+LICENSE="MIT Apache-2.0 BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+RDEPEND="
+ acct-user/redis_exporter
+ acct-group/redis_exporter"
+DEPEND="${RDEPEND}"
+RESTRICT="test"
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ ln -sv ../vendor ./ || die
+ default
+ sed -e "s|\(^[[:space:]]*VERSION[[:space:]]*=[[:space:]]*\).*|\1\"${PV}\"|" \
+ -e "s|\(^[[:space:]]*BUILD_DATE[[:space:]]*=[[:space:]]*\).*|\1\"$(LC_ALL=C date -u)\"|" \
+ -e "s|\(^[[:space:]]*COMMIT_SHA1[[:space:]]*=[[:space:]]*\).*|\1\"${EGIT_COMMIT}\"|" \
+ -i main.go || die
+}
+
+src_compile() {
+ export GOBIN="${S}/bin"
+ go install \
+ -ldflags="-X main.BuildVersion=${PV} -X main.BuildCommitSha=${EGIT_COMMIT} -X main.BuildDate=$(date +%F-%T)" \
+ ./... || die
+}
+
+src_test() {
+ go test -work ./... || die
+}
+
+src_install() {
+ dobin "${GOBIN}/redis_exporter"
+ dodoc README.md
+ local dir
+ for dir in /var/{lib,log}/${PN}; do
+ keepdir "${dir}"
+ fowners ${PN}:${PN} "${dir}"
+ done
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}