summaryrefslogtreecommitdiff
path: root/app-metrics
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-15 18:47:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-15 18:47:53 +0000
commita4eda25bf0f72d757244b128657832bc4da28375 (patch)
tree5a4bda4947a8d19e1f07c2385db1aff2c18ba0d2 /app-metrics
parent6e8d3793323b8f24be801a4aaf31cdd31a8483e9 (diff)
gentoo auto-resync : 15:03:2024 - 18:47:52
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/Manifest.gzbin7146 -> 7149 bytes
-rw-r--r--app-metrics/postgres_exporter/Manifest3
-rw-r--r--app-metrics/postgres_exporter/postgres_exporter-0.15.0.ebuild49
-rw-r--r--app-metrics/prometheus-lvm-exporter/Manifest3
-rw-r--r--app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.3.ebuild49
5 files changed, 104 insertions, 0 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz
index 3c66bd101bff..e0d8aacee4d7 100644
--- a/app-metrics/Manifest.gz
+++ b/app-metrics/Manifest.gz
Binary files differ
diff --git a/app-metrics/postgres_exporter/Manifest b/app-metrics/postgres_exporter/Manifest
index d3ddfccec7bc..c230939f2d49 100644
--- a/app-metrics/postgres_exporter/Manifest
+++ b/app-metrics/postgres_exporter/Manifest
@@ -2,5 +2,8 @@ AUX postgres_exporter.confd 61 BLAKE2B ce1fac504bd44cd87bec492b2fc5ccc8fc7c1f1bc
AUX postgres_exporter.initd 560 BLAKE2B 2a813208d623460930d0e2288fb4102dde6add57bd9e83caa60a46cfb4770734bfcfd88a29713c881a36f2d1e20ff0c8e3ed47a23e024d865cbcc7d6cddf99ed SHA512 7ab3c8ea837e48ee776e12254a6c968ffceb6fa3f9f994aa44897f3a8fe6bea3d5ce29e8b4f85b626b690b50171feff5901952cbbad28ccc0e49333496ca7c87
DIST postgres_exporter-0.10.1-deps.tar.xz 106506900 BLAKE2B 3f32d804d9bd07a91ac623656896d23bba217e2ceed90ff2fcfa19d02093912fe35008064b1248ee98a23e02efdef2761ad7c1dfc96c636d051686ed4a58eceb SHA512 842c6d519c537989cfba36961d38b1cb0e315241a88e1f53532ebf1829d31c7c17b5986680193663e4de3c5cfab3bb25f38e5c6afe6b2ab14ce2efd47a052ae7
DIST postgres_exporter-0.10.1.tar.gz 73157 BLAKE2B bc56dfdd50878615768fc4e4a193784b73ee48cb1b2743deae21d6caf5db60e3eabe2987cee27742081bea1c506a9c96fb11808304a0007c5e2e252a1e4cb752 SHA512 75ba08354174980d55fb1deed1035323d89f3331f0c366165a0262b4081b99d083f14dbcdd7539836399d0d69a75a296cb978a42d94ff0b1c0bcb8f3933fcabc
+DIST postgres_exporter-0.15.0-deps.tar.xz 10107168 BLAKE2B 2c63161629b7a7aa7e4ca8332f1ad140bfd4c6d496cf860964da4b1897ca67e8716f22db35df6e0558c2764442afea657f3d3e2406762f14b88bf2266f2464f7 SHA512 91a0d8b471ef06635ee3520c8b2a15e19ebb9427356602752f0b35d87efacc129709cac50873f94305edf85149d0b9bb0b2cf6d2bfa8d1ec88e6c6a6be1f4880
+DIST postgres_exporter-0.15.0.tar.gz 86818 BLAKE2B bf4b3f842c98e82c54eb8393271bd9879a93cd8f28b2fcafa09bbb907caf96c4b728139b08074f1de08295b18d61aaa29b4fb53321164c8b4fc93545f7da5b7a SHA512 332700809454dba11e1e6b9cbc46be9683925a6c692e110efa1204ce1ad1457a8d2237ee8af20f1ee6d5c663266fc1629da6f4f5ff9151faf294a26af8be7682
EBUILD postgres_exporter-0.10.1.ebuild 1069 BLAKE2B 52620d8bb3802138f5bac4f7bdf1a817cfe876c408b2ba81172ba674191b0bead4cf76f7d90cd03c32dcdb44a4d7ce79d4f8f24d0d0e0a5a87b49fe7d7e15dfe SHA512 28c63ec8311902f9704860f68a65db5cd697fa0a0c01885ac21f2c386e3fda61327e4624c4579faaf218d72e9a006a330498f33c7048806fefbd46ab1de2f9cc
+EBUILD postgres_exporter-0.15.0.ebuild 1098 BLAKE2B 9ee1674edb306a7e6327111c0fbde2042ee9b12bf21d70f157ed223e3990ad4547eae40058742554965a8ba02b0b9773491e89e3ae84152f5f00f0c75b9e7bbc SHA512 528bef427072e80641cb860a74801c93db25ef62ea4865adb753d7fa13fd6090a40db319e6baeb76006d9104729eb141530f1ac095738520d191751239a21309
MISC metadata.xml 341 BLAKE2B 248bfd342498dcd907049c1fda9b41b02d7a826825a269e56c9a6cf8b2212e1032ab7023192f894069183799baaeec735511a1fcf12f38cbf2a04a4693a53192 SHA512 e951d788f18c53f5809aa9dd815b53233f00605c67ab618559574a22537a4407f8e3dfe8c6800ccdd9aa475704f06258e393a0792ce6d6780c29918d4396a080
diff --git a/app-metrics/postgres_exporter/postgres_exporter-0.15.0.ebuild b/app-metrics/postgres_exporter/postgres_exporter-0.15.0.ebuild
new file mode 100644
index 000000000000..6ff33eff04cb
--- /dev/null
+++ b/app-metrics/postgres_exporter/postgres_exporter-0.15.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+GIT_COMMIT=68c176b8833b7580bf847cecf60f8e0ad5923f9a
+
+DESCRIPTION="PostgreSQL stats exporter for Prometheus"
+HOMEPAGE="https://github.com/prometheus-community/postgres_exporter"
+SRC_URI="https://github.com/prometheus-community/postgres_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ acct-group/postgres_exporter
+ acct-user/postgres_exporter
+"
+RDEPEND="${DEPEND}"
+BDEPEND="dev-util/promu"
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s/{{.Branch}}/HEAD/" \
+ -e "s/{{.Revision}}/${GIT_COMMIT}/" \
+ .promu.yml || die "sed failed"
+}
+
+src_compile() {
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc README.md queries.yaml
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+}
diff --git a/app-metrics/prometheus-lvm-exporter/Manifest b/app-metrics/prometheus-lvm-exporter/Manifest
index 2e673255b567..4c9b815fa414 100644
--- a/app-metrics/prometheus-lvm-exporter/Manifest
+++ b/app-metrics/prometheus-lvm-exporter/Manifest
@@ -2,5 +2,8 @@ AUX prometheus-lvm-exporter.confd 925 BLAKE2B 8a4ff61a3aaedf23de1f9a749f0c828c90
AUX prometheus-lvm-exporter.initd 1333 BLAKE2B 8a704630df2c4bb58e9431d65de3468d03f95e6c3861310f5191d42b13680162376fc40c858439343cc21fb171a083e1ffd5dc377a35cd9a0a7ba1c263471bd9 SHA512 de45af4d3a4333cbdbe54cb98d9cda506e69da1b249038931ff95b705e666aebcba667f3422b99225030aeeab95377305e9a7e0a506000bb67eeb576ca174b77
DIST prometheus-lvm-exporter-0.3.2-vendor.tar.xz 1390560 BLAKE2B ab6fe8febeb972bf2a65dd05c6060bb584638dc4250f221353b7fcc3714cd5f56b8ef69c36fae67103bf57d66ca8000c70212fa3f82ed54ad7bcf0eaae63c822 SHA512 e320cdbe27841f69fad201e52a6b5a9acdd919b57c7e067506e6829e3cf11936a0ab21e817dedc6fa0c277ddae891412a10565d6dac8f859669e1a37cc760e86
DIST prometheus-lvm-exporter-0.3.2.tar.gz 60790 BLAKE2B f6b79627e9114140cab72d34744e5667e1174dd2bc720866d398d48be03067a29e03305e8a22ef4d706b2261083ec6f108e6c8578b9e717bf7915f2412b3da41 SHA512 75f3cc65fc9196faff0796e9df85ea8f7e5d15a97e7e46d635802049ad11e499bc5f0fd0b6833d1028dc23435fb8d0c2523e7333fb76e291f3ff16e297c37973
+DIST prometheus-lvm-exporter-0.3.3-deps.tar.xz 8813080 BLAKE2B 3fad55a4a57bd34ca29b27d2a3812f5e3f1bb4b2315bd9a10d4cb264cbacb13e3aa0385da117bc193cea12c9ea1245aa80e74a49339d25c7ed277cd681ff38ad SHA512 df93b13bc389d87d9d33bb637ca13af13cff02c411e4ba16159dd9be560e15b1f107c593a95ecb72f0d92ce5124439c42673562e5da5016b726512e5cd32c7f4
+DIST prometheus-lvm-exporter-0.3.3.tar.gz 47239 BLAKE2B 5e91e9a06090843f1637624bcde9dcf5af771fb03467d3c09affed20ccc7f8f565bcbd4b7cf97df3be5d06dbfaaeacf76af43b635b5e887cfaa4cfe7a601fc78 SHA512 84315d248310c4cd2e2a51e57026561beb813d4cdc621f545b8b285804ecc6faba28644e19fb2435fefe77552385f04fc1e604d543675ccc002f1984d92c8c21
EBUILD prometheus-lvm-exporter-0.3.2.ebuild 1502 BLAKE2B 73bd2312cd869ebfcfd99ef821baf3fc2ce4c78e6bfdc6014107dcdbaef6161cce23366c7efea9d38f24e74efab284d7659a79e26696f7fb4a87be340d2b10e1 SHA512 c72b686015d1d68c3bccac2720981fa9c2b4777108c4b74d1c420b4b99fdb4df0ee90cbc4d74005925cb609ad973ff338e18329a0b327426f6bce607e154ddca
+EBUILD prometheus-lvm-exporter-0.3.3.ebuild 1130 BLAKE2B ec1df1f8111b40b0e58870105b68cfde3b226c9f3a9c50e5ee2977111ea2df8f044243ae6cc91f2e35509dd47f41661b21352d0497766d409772d07ee1c5c5ba SHA512 a32d9f27d0fa4c7ceea093a0fb9f281f9c285bd16b1df33cf863452966f581575d0b48fe1088ba2ef941fb41063cfb1c89f58f4adc636a467e56a28556ef2dfb
MISC metadata.xml 314 BLAKE2B f1a569f2a68451b302aee5cef7e2e75fe0d0345d4f26f8f76bbe737f7c9e34644e825dc25ce32aa1c496b779600cc553ca4dd759963188c9521d0e50b90f82e5 SHA512 b934e990776ca0251a7f093ab7d90e186dd5299278c7a2b7e886970e6bf3255c55c44a24eb3309693c6ba64e50bb546a35b2de3123599bc047bfd9b876673027
diff --git a/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.3.ebuild b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.3.ebuild
new file mode 100644
index 000000000000..28809292d70e
--- /dev/null
+++ b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="Prometheus exporter for LVM metrics"
+HOMEPAGE="https://github.com/hansmi/prometheus-lvm-exporter"
+SRC_URI="
+ https://github.com/hansmi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# lvm is explicitly not included here; this could be installed before it safely.
+# RDEPEND=""
+
+src_prepare() {
+ default
+ sed -i -e '/kingpin.Flag.*\<command\>.*/s,/usr/sbin/lvm,/sbin/lvm,g' "${S}"/main.go || die
+}
+
+src_compile() {
+ default
+ ego build .
+}
+
+src_test() {
+ ego test .
+}
+
+src_install() {
+ default
+ dobin ${PN}
+ dodoc README.md
+
+ systemd_dounit contrib/systemd/${PN}.service
+ insinto /etc/default
+ newins contrib/systemd/${PN}.default ${PN}
+
+ # TODO: more secure config would be a dedicated user AND a sudo command, so
+ # the daemon can run 'sudo lvm ...'.
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}