diff options
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/Manifest.gz | bin | 7123 -> 7294 bytes | |||
-rw-r--r-- | app-metrics/chrony_exporter/Manifest | 6 | ||||
-rw-r--r-- | app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild | 31 | ||||
-rw-r--r-- | app-metrics/chrony_exporter/files/chrony_exporter.confd | 2 | ||||
-rw-r--r-- | app-metrics/chrony_exporter/files/chrony_exporter.initd | 17 | ||||
-rw-r--r-- | app-metrics/chrony_exporter/metadata.xml | 15 |
6 files changed, 71 insertions, 0 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex eb75ab853561..8f67c68632bd 100644 --- a/app-metrics/Manifest.gz +++ b/app-metrics/Manifest.gz diff --git a/app-metrics/chrony_exporter/Manifest b/app-metrics/chrony_exporter/Manifest new file mode 100644 index 000000000000..b438caa2dcb6 --- /dev/null +++ b/app-metrics/chrony_exporter/Manifest @@ -0,0 +1,6 @@ +AUX chrony_exporter.confd 88 BLAKE2B 095f1cd1a2c1d2979db94047fa57546d6c6e752d25cfdeb5a3ef66a1b17d9d2fdf4dc00941a7afde5090d766b1a4d923b518019ab39214cb2f600bf354076c7f SHA512 e4af9c5b6c11409ef34ed15fb853ce1e83ea4782060ff75548acc8d8cd1956795cc7c955693f61b18822dd7238f3bbe0a2c79381f51298a5feea9312a1cfc2bd +AUX chrony_exporter.initd 455 BLAKE2B f502c1841d96fbade3cd867ef8234262f51b7825c3922f28a4a2117811c2bf2ad9c1d9d4e0e889aebed60ca67ff7638539cdc73372e9cbde59e624aa85857af2 SHA512 be018e3430065f44e0333d6c81b2956ae53e2874354f89bf5873daaa3357a35e01ac0c2cd7d2bf9bb05c4b5b4e0039c31e3c0881d4eef16e03b4b1928f74fc88 +DIST chrony_exporter-0.10.1-deps.tar.xz 8939432 BLAKE2B 91fa640e67ab1b158992808d93093204a040e4487e75443f0c223a3b0d624e8c065785443eaaaa21fa2395df38a49285d209bd35bc95ab72013adc8559b5b99c SHA512 d027d4031ef8635ffbbc9a8d349b60ff1eb26ad17a2d27bd2d56f5a3422983b84891c367d70c43f7ee0ece3165428104611a51e0bc01e35ce1c2a4bd89c648b4 +DIST chrony_exporter-0.10.1.tar.gz 21438 BLAKE2B 9be912ab6569de2a5e6e39055ba54cc619d8a7c29d0043abda97af13ded6ee7766c97d97cc12cfc3404c4adbb1c779e444a9b3f18bf5ca615ba33f8cd62c70b9 SHA512 4e8f321b38605bad448d453e5754c6fe10518fe35ee063552a6dad6c01fbcc2156b1eb40873ba157a324fffc899acdaa8fb33b5464bdfe2c2b620c7849224c2a +EBUILD chrony_exporter-0.10.1.ebuild 714 BLAKE2B cecdbf5428f77a7c0b2833f2520c997568d660f118a405c49bd69d6d877923ea913a971a1b5451f2b58cc431859636b22d6aed53bae3be088d283b6b460f453c SHA512 5b6679afcc4ad9c5ddde341c0a76d5da5340b6d1e755e59052caa9900bbc849a9938c1828fbef11f6f13519ee10151e0b01ce54e1c30df41f7b3e637ea0d1525 +MISC metadata.xml 498 BLAKE2B aeeb8978b0b8c83392f1744e74e858fb29b9e00903e4493c26ebb4b3b4476ed5e281324eb1dba2998076c56c9fc7b1bbdaaf43f84d5b9932e205ddcdaf5fc6a7 SHA512 0996139fbb967e62d6fe59d248383aa7308209f5c85800321afa8e01d543d7045d7b7824938cc402b70c6e14d19da6564d2f487ae578df05aa06286ed5c7df7a diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild new file mode 100644 index 000000000000..b24bc02e2e57 --- /dev/null +++ b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Chrony NTP exporter for Prometheus" +HOMEPAGE="https://github.com/SuperQ/chrony_exporter" + +SRC_URI="https://github.com/SuperQ/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://www.applied-asynchrony.com/distfiles/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="acct-group/chrony_exporter + acct-user/chrony_exporter" + +BDEPEND="dev-util/promu" + +src_compile() { + promu build -v --cgo --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/chrony_exporter/files/chrony_exporter.confd b/app-metrics/chrony_exporter/files/chrony_exporter.confd new file mode 100644 index 000000000000..0fa8c6ec9b45 --- /dev/null +++ b/app-metrics/chrony_exporter/files/chrony_exporter.confd @@ -0,0 +1,2 @@ +# arguments for chrony_exporter +command_args="--collector.tracking --collector.sources" diff --git a/app-metrics/chrony_exporter/files/chrony_exporter.initd b/app-metrics/chrony_exporter/files/chrony_exporter.initd new file mode 100644 index 000000000000..7cddf925322e --- /dev/null +++ b/app-metrics/chrony_exporter/files/chrony_exporter.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 2016-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus chrony metrics exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/chrony_exporter" +command_args="${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group}" + +depend() { + after chronyd +} diff --git a/app-metrics/chrony_exporter/metadata.xml b/app-metrics/chrony_exporter/metadata.xml new file mode 100644 index 000000000000..d5b482f753d9 --- /dev/null +++ b/app-metrics/chrony_exporter/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>holger@applied-asynchrony.com</email> + <name>Holger Hoffstätte</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">SuperQ/chrony_exporter</remote-id> + </upstream> +</pkgmetadata> |