diff options
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/Manifest.gz | bin | 7287 -> 7287 bytes | |||
-rw-r--r-- | app-metrics/chrony_exporter/Manifest | 3 | ||||
-rw-r--r-- | app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild | 37 | ||||
-rw-r--r-- | app-metrics/node_exporter/Manifest | 3 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.8.2.ebuild | 72 |
5 files changed, 115 insertions, 0 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex 9d94978352d9..f6e61e799a48 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 index b98b95cd63df..af775172eb5a 100644 --- a/app-metrics/chrony_exporter/Manifest +++ b/app-metrics/chrony_exporter/Manifest @@ -2,5 +2,8 @@ AUX chrony_exporter.confd 88 BLAKE2B 095f1cd1a2c1d2979db94047fa57546d6c6e752d25c 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 +DIST chrony_exporter-0.11.0-deps.tar.xz 41116280 BLAKE2B 03b6ae2be5d4f40b1676bba081c09aac244e77490ae3f1448e7731b110140ae429c5d3221f06935b8d85c75ef2c730938ce1b90e61e91257c1ce47bf548dff99 SHA512 ffab08b45eac42677c59b6b1fdfcbaea1571cfa73ddabebd52b7c5e1080d81f38e049b3983a54bd92c5eb45eff6759d40513c5e71f5c7ab53a60d0986fdedcfd +DIST chrony_exporter-0.11.0.tar.gz 22601 BLAKE2B 9c050f55c6a88f2da37269609d885a15436618368141e75301ddbb477b13bd625089f8315ba020595222afb6e18d5812bfd394ac2413c85c9ce9e9dc13cca689 SHA512 d531d285fa1ff86d2d3036c2efe93f9cf6cd22b55024a91228f25260d6fe6fdb25c4d5af51c83e799721a51b7c742205436b4dc2eeb2ed9cff965f85a264aa1b EBUILD chrony_exporter-0.10.1.ebuild 859 BLAKE2B e4a7609d99bc947b512ff95f6f8e965d64e3477db3173aa5fba9f7c724f4987065e4348a0cb874d5b9f56a8fc53eb02f6c42f34ef3bb8f066b67f0535bec5df3 SHA512 df707079907e59f537215fbbddd82afdb43c531fb2dd4c611cbfedb9aaa868585cdaa5941d66ab43cf4c0d5e2420a92a388c998e9957a515b232100861173fdf +EBUILD chrony_exporter-0.11.0.ebuild 860 BLAKE2B fa399642ba152b0ca298edcbd8a401f1d39796d711008468b83a2f1542a29314d7e57e09ffb30dcae8fe390b23e1bc72d22f2ff198c5f3ad997ade7ef2ef311f SHA512 ad58e9d141fc56cd06a2b11dab6882e1f80c166d400d294bd17f8589080f1f9f6c3f368650bb69ef42a787f73a55f17719cc15b81feaa859b3beaa440acffdfb MISC metadata.xml 498 BLAKE2B aeeb8978b0b8c83392f1744e74e858fb29b9e00903e4493c26ebb4b3b4476ed5e281324eb1dba2998076c56c9fc7b1bbdaaf43f84d5b9932e205ddcdaf5fc6a7 SHA512 0996139fbb967e62d6fe59d248383aa7308209f5c85800321afa8e01d543d7045d7b7824938cc402b70c6e14d19da6564d2f487ae578df05aa06286ed5c7df7a diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild new file mode 100644 index 000000000000..d264fa860fc5 --- /dev/null +++ b/app-metrics/chrony_exporter/chrony_exporter-0.11.0.ebuild @@ -0,0 +1,37 @@ +# 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_prepare() { + default + # No need to enable the race detector for tests (#935442) + sed -i -e '/test-flags := -race/d' Makefile.common || die +} + +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/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index f0e0e90d5a0e..087e14b1956f 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -8,9 +8,12 @@ DIST node_exporter-1.7.0.tar.gz 328830 BLAKE2B 5f6b8101637bc0df605ea84446f905fcf DIST node_exporter-1.8.0-deps.tar.xz 1684580 BLAKE2B 0c02ca1177444885556da08676e78a413952955bfa80d9d7a9026133059594eaddd6f43fe10783701c71d0ecf2be9ac9383d019daeb287d5d016bd1188e5b37c SHA512 7268139beec7bf088ae4819809221985d1920e38b60db75cc074e92ce4dbe573c362f5227f095b4e5d1de7005b8ec2fbf96d3dcdf565eb2c9524d71676e1752e DIST node_exporter-1.8.0.tar.gz 335029 BLAKE2B 639edfec973e7412620da855c997e1e50ccb5fc4afc4070c44ab3fbb9b4925103719c87f813e092db3548cd55b779233fbf71bf3affc6b779ba0e45f4767ec32 SHA512 4774ff3e146665783044769235b9d4f538ba3ff1d7c9fdfb33e5546042846371c7d26efa8a6d672e6de3c5a10107c2e72e5bbf38ed2952a5c48eda81fdc1379a DIST node_exporter-1.8.1.tar.gz 335265 BLAKE2B a3b6262fd903373bb3690b0f051d9a4770741ba9702dca30e9de91214493026f3386b72c14d77c9254ab0c3549c3a4aa1075b3abd9516aa1c4a44bcd5c26f25f SHA512 9a715912899b7e27390f403182d8eba3a040fe0f0b6832967d131338b44d7a4f89860d1f2e4da19b8be6389fed38db1a96d803412c041b2b996cc543d1383c79 +DIST node_exporter-1.8.2-deps.tar.xz 9579024 BLAKE2B 7fb5abc6f5c0517350dce5fd9ee895ee599853804d97e1229dfcc1b2fa4a75fa900d7af6ae00558b509c798f852432515045986102a55ba4fcb43ec18af18874 SHA512 4acc939c63935191dd5b58860e1543f76ddc67abe16370d19f163c0c982fad53f05a6ffd049555c0c5475d640ca495df0696e77fa23c6dd79f314ce67d014b8f +DIST node_exporter-1.8.2.tar.gz 335292 BLAKE2B 7aad2ac3433ba58be887c86d1cfbf0cd53d6712d171d2a928145588ea68f2839d593758254ab8742b7c27f068a75391959ea78ae768ffc1a0a1f5b08069dcf52 SHA512 68112a85a9ffde88d75893c30ab992ae3c591d44fbefa10e45cf94d228c8f8c44bb3585707521e355817c4b4276cf77eeaf4ed9d0261de02620135ad12f5e711 EBUILD node_exporter-1.7.0-r2.ebuild 1884 BLAKE2B b446559b3c28c9a9e1dd311b0fa93a6813d632965ddbe01577b015e335e718f15f1cf406a78c020fc889c916f8e3a23cd6309cd3e88de34c18cc61deee207c4b SHA512 7b72066b5fe96dc03359ccf4fd5b8a1536846fdacbf379e7f61e34a634093f42bd6264d2e17490ddadab6d2a16b084998dd9d4011ea23e72fe55b670d428a4cb EBUILD node_exporter-1.7.0.ebuild 1943 BLAKE2B f4f7dd6f5b6e6eba320357442c4909f93f334d21273ae29eccc611039d4ccd8c8de960a47e8eda5d47ca031733cc7114530c50bc1a8161f37d90742e22c420cc SHA512 4357f81b0b40a88b4fb19b04340d07c9d7225cf3ff247f0ee05807ec14a7496913445354d89ea91b82041205f9f0f7ee8ed21c9eac71537990e3a00fb2b17231 EBUILD node_exporter-1.8.0.ebuild 1787 BLAKE2B 058b9e8b6dfa75860dbf4ed4e254b34e132e111c544aed5a7fc806be0a222f0526ac442b9992620317eabcb6cb9c41c8357afb94e57efbab245b60b364a5f8e4 SHA512 c702189d230078bbe19de2b3c77b5b6d2841bc1b7fe945052b0f7122a4aa1e222a4d71e87d7334a886661bb19855c2cf1bdf8281ca0e04914f1ec37191b3af76 EBUILD node_exporter-1.8.1.ebuild 1794 BLAKE2B 217bb210f11db475cc93870fa109b589b66b429913ca998745a747fab6fd965d98477b2ff34a9d215067d963b87f1872dbcbd9bf016e90d29c5e0b96b81c51d5 SHA512 d43b8fbea30ba757e62661cdc4e95e0c638dbde2a5ccd98b65cb1ce17c063b5f3b672fa25c064e7cbbe2235c74d85fb6a65fd6c514d684376cb9339121946882 +EBUILD node_exporter-1.8.2.ebuild 1725 BLAKE2B 8f7c7cc9c352a483b9e8b7d3b0810c428841a0e5249e49222c424461f84a533f4dcdeba4a92f2f43d1ae0d019a565d035d6e85e14e91e68ee480a66099cb0752 SHA512 eb11ebacdc9fa159aead6f145a9a62b20bc6039f31054b8ea6e26eccf8745b778993093e5e087b52ff94c1b912e1dc4f9a7c1091e704ef79a59a301b3fa89999 EBUILD node_exporter-9999.ebuild 1780 BLAKE2B abe8b6d55d125d6e51ccbe6539e503051221aa33e030474b3ea603a38e1c8a80adfec50c537ad1b754cf06ce84e634e2e268984a13016001686afdae11b5caa9 SHA512 a875c3890751233447dae348d92ad910f8f191641639a96ba51da2ec5d8320a12db9a18e28617ad60d5f7ed0649f10d67c7e5334832232bd7628eb7c6e5a8620 MISC metadata.xml 831 BLAKE2B eba45344fe1d19be5656038d109827066f0aef5fa9f1338bca84217b98a880f232f5459bf017a661334cf8ec4221b749cd4feab8f166d027ceb77ab67a38a70c SHA512 3654c7f6cbe75997ad120d3470691125daa51d1d4be531e12026ddf1313c4cce07d05bba6d48b67ebd19931a47d5a2ec79d8f0c4c2ca8314928c32574e136747 diff --git a/app-metrics/node_exporter/node_exporter-1.8.2.ebuild b/app-metrics/node_exporter/node_exporter-1.8.2.ebuild new file mode 100644 index 000000000000..74515ab14c73 --- /dev/null +++ b/app-metrics/node_exporter/node_exporter-1.8.2.ebuild @@ -0,0 +1,72 @@ +# 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 machine metrics" +HOMEPAGE="https://github.com/prometheus/node_exporter" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/prometheus/node_exporter.git" +else + SRC_URI="https://github.com/prometheus/node_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + + KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" +fi + +# main pkg +LICENSE="Apache-2.0" +# deps +LICENSE+=" BSD BSD-2 MIT" +SLOT="0" +IUSE="selinux" + +COMMON_DEPEND=" + acct-group/node_exporter + acct-user/node_exporter + selinux? ( sec-policy/selinux-node_exporter ) +" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND=">=dev-util/promu-0.17.0" + +src_unpack() { + if [[ ${PV} == 9999* ]]; then + git-r3_src_unpack + go-module_live_vendor + else + default + fi +} + +src_compile() { + if use x86; then + #917577 pie breaks build on x86 + GOFLAGS=${GOFLAGS//-buildmode=pie} + fi + promu build -v || die + ./"${PN}" --help-man > "${PN}".1 || die +} + +src_test() { + emake test-flags= test +} + +src_install() { + dosbin "${PN}" + dodoc example-rules.yml *.md + doman "${PN}".1 + systemd_dounit examples/systemd/node_exporter.{service,socket} + insinto /etc/sysconfig + newins examples/systemd/sysconfig.node_exporter node_exporter + newinitd "${FILESDIR}"/${PN}.initd-1 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}"/node_exporter-1.7.0.logrotate "${PN}" + keepdir /var/lib/node_exporter /var/log/node_exporter + fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter +} |