app-metrics/apache_exporter: new package, add 0.13.3

Signed-off-by: Federico Denkena <federico.denkena@posteo.de>
This commit is contained in:
Federico Justus Denkena 2024-02-01 17:39:31 +01:00
parent 0cc8662868
commit ba28827dc9
Signed by: f-denkena
GPG Key ID: 28F91C66EE36F382
8 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,47 @@
30 Apr 2022; Manuel Friedli <manuel@gentoo.org>
-apache_exporter-0.8.0-r1.ebuild:
app-metrics/apache_exporter: Prune old version.
30 Apr 2022; Manuel Friedli <manuel@gentoo.org> apache_exporter-0.11.0.ebuild:
app-metrics/apache_exporter: Fix build.
*apache_exporter-0.11.0 (30 Apr 2022)
30 Apr 2022; Manuel Friedli <manuel@gentoo.org>
+apache_exporter-0.11.0.ebuild, -apache_exporter-0.10.1.ebuild:
app-metrics/apache_exporter: Add ebuild for 0.11.0
*apache_exporter-0.10.1 (12 Oct 2021)
12 Oct 2021; Manuel Friedli <manuel@gentoo.org>
+apache_exporter-0.10.1.ebuild:
app-metrics/apache_exporter: Bump version
*apache_exporter-0.8.0-r1 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
+apache_exporter-0.8.0-r1.ebuild, -apache_exporter-0.8.0.ebuild,
files/apache_exporter.service:
app-metrics/apache_exporter: Change location of sysconfig file
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> -apache_exporter-0.7.0.ebuild:
app-metrics/apache_exporter: Purge old ebuild
*apache_exporter-0.8.0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.8.0.ebuild:
app-metrics/apache_exporter: Add ebuild for versin 0.8.0. This is conforming
to GLEP 81.
14 Nov 2019; <manuel@gentoo.org> apache_exporter-0.7.0.ebuild:
app-metrics/apache_exporter: Fix ebuild again.
14 Nov 2019; <manuel@gentoo.org> apache_exporter-0.7.0.ebuild:
app-metrics/apache_exporter: Fix ebuild for apache_exporter.
*node_exporter-0.18.1 (10 Nov 2019)
10 Nov 2019; <manuel@gentoo.org> +files/node_exporter-0.18.1-systemd.patch,
+files/node_exporter-1.initd, +files/node_exporter.confd, +metadata.xml,
+node_exporter-0.18.1.ebuild:
app-metrics/node_exporter: Add systemd-patched ebuild fpr version 0.18.1.

View File

@ -0,0 +1,9 @@
AUX apache_exporter.confd 59 BLAKE2B 4466ae408352adc136fa882cf382c1562e8e0b6401edf8e5a8633d3736da20ecd3b2e10b0b2e6b2cbec30c74ea6aeac930863ff18568e2144544539306b79208 SHA512 eaf040d612155e8ed5359124283a591559b720170583a654a06d0b5e480cc9e99c1bcba97cffca03816f3c2b49d304e183f997067d325636ec71a33118a45df9
AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce028a981d9d39cc5a5292c39018a80df2a3f0ad4b97aa1a0da059e89ad151f0a0b3d13d6ba6386aa4a9d6d4 SHA512 42367bb35b79cb3c4946ae57e81fa918d94b9b5613469e1e070797ffc9ab7ae74aaa3ad244be35cef8fe5df043fb5e1a604449c3a416e01da7cb11ad95c2b5b1
AUX apache_exporter.service 196 BLAKE2B b7429d240256bdbe594741900bd1715d7806f604d420b668c83ed2b4f66b32ba1ff142a54e04687182c0b24f43d58c6d74f5b319d69aaa4619d4b561a9567913 SHA512 a93847eb9407e94388a606972373a2e9c51ca46f16b8a87365d8544b680d1d0fbf47a6eb86865621375015a58c8b6480aeefa247f37c31fa0a84383a27a915f7
AUX sysconfig.apache_exporter 11 BLAKE2B e83c8a1c6cf0d2269d032d80bfb5f37969adce8655298d49f942e19318e1fcabe7f618514ce65d9e0209959d5ccb38141e81fcccd65a754584eaf2db3b4fbd03 SHA512 f4d982f86de30c5b52b04c201cd38fffa87f860bef18af6ab85e856ae2081b919256b918b5f4821ee2fc4da0548d1a95c2522b29cddca57f694e2f26c1b1b2b9
DIST apache_exporter-0.13.3-vendor.tar.xz 1311036 BLAKE2B d42c00dcb2617c2df730147f8711cea23bdfe231b4b27bca3962dc0c4396835bc520150758befc984e861f6d89e933c4a62990dd0b11fcd3119e73eb2c6b9b16 SHA512 09c221e21d49d3e9a3c4511b5122a36445ad877c34e3ce38e3600f98468588ccbaa185bd99fbc191e61a165c73306eb48d9ba4717bcccacc67defa4aaa45e97e
DIST apache_exporter-0.13.3.tar.gz 21352 BLAKE2B 159817b02e8721ab67745b586f9853ec2334ce43986cdfb42edfb372c8f7d873223918984aff5e01f4f2c998bdb743fe8ac28b463811a27fdf10a2bde5a04f3b SHA512 948190d1d97b13b1bbaba644941bbba960caea753806542211fbce33d783e5b53e01a02ab7de242965c83d336cb31b08556ee4a8caef5ff78607cc24601b7118
EBUILD apache_exporter-0.13.3.ebuild 983 BLAKE2B 475ca32da293ac16e95c54fe25250a079eb839b27097f13881768e3a2e1623964221ec32b90bc26ae82d01f87f1234030515307b9b06e547221750034c403389 SHA512 875befb9bbc4e6b564fc06a56ca3b684c52595adf44f4014bd415c38e34807b84097bd15566de675d224ac654c0ba811efda447bc35dffcace3b12b99870635d
MISC ChangeLog 1784 BLAKE2B 711840e812185617076bb46a0932cf788ecb858410369aef3032da3e5a4a655f004d6f03fe2ea978d60e67bed11fc38632c2b794e9e344e14a85e6c5e8722886 SHA512 b95c61c77c453a542a101ae5aeb017b5801b6fe79a427cf1f1667e66956c94bc03e3ad49b75b2bdfaf33ad977fa1a9ff152fc782d2b223a21d4f3ffb82d2186d
MISC metadata.xml 358 BLAKE2B d25e9822dc9c9efcfc1a24029018651b9342ced362df7077945112137a50fa8d4a3e17189eb8ad502486ec2ff66d8d17c91f0a1add2bdae3534d055a6a386dc6 SHA512 7f005b095a76fac20912819c645cbe74abf41be6b844433af8778d28db77decfdfb9122f272fdc80f2d0756ad1ca02901aaf374bc5af81dbd3c48fce9fc3aa71

View File

@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="Prometheus exporter for apache metrics"
HOMEPAGE="https://github.com/Lusitaniae/apache_exporter"
SRC_URI="https://github.com/Lusitaniae/apache_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://manuel.friedli.info/gentoo-overlay/${P}-vendor.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="acct-group/apache_exporter
acct-user/apache_exporter"
RDEPEND="${DEPEND}"
src_compile() {
ego build
}
src_install() {
dobin apache_exporter
dodoc README.md
newinitd "${FILESDIR}"/apache_exporter.initd apache_exporter
newconfd "${FILESDIR}"/apache_exporter.confd apache_exporter
systemd_dounit "${FILESDIR}"/apache_exporter.service
insinto /etc/sysconfig
newins "${FILESDIR}/sysconfig.apache_exporter" apache_exporter
keepdir /var/log/apache_exporter
fowners -R ${PN}:${PN} /var/log/apache_exporter
}

View File

@ -0,0 +1,2 @@
# arguments for prometheus apache exporter
command_args=""

View File

@ -0,0 +1,23 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Prometheus apache metrics exporter"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-${RC_SVCNAME}}
group=${group:-${RC_SVCNAME}}
command="/usr/bin/apache_exporter"
command_args="${command_args:-}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/apache_exporter/${RC_SVCNAME}.log \
--stderr /var/log/apache_exporter/${RC_SVCNAME}.log"
depend() {
after net
}
start_pre() {
checkpath -q -d -m 0755 -o ${user}:${group} /var/log/apache_exporter
}

View File

@ -0,0 +1,10 @@
[Unit]
Description=Apache Exporter
[Service]
User=apache_exporter
EnvironmentFile=/etc/sysconfig/apache_exporter
ExecStart=/usr/bin/apache_exporter $OPTIONS
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
OPTIONS=""

View File

@ -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>federico.denkena@posteo.de</email>
<name>Federico Justus Denkena</name>
</maintainer>
<upstream>
<remote-id type="github">prometheus/node_exporter</remote-id>
</upstream>
</pkgmetadata>