diff options
Diffstat (limited to 'app-metrics/node_exporter')
-rw-r--r-- | app-metrics/node_exporter/Manifest | 9 | ||||
-rw-r--r-- | app-metrics/node_exporter/files/node_exporter-1.initd | 23 | ||||
-rw-r--r-- | app-metrics/node_exporter/files/node_exporter.service | 7 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-0.18.1.ebuild | 52 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.0.1.ebuild | 45 | ||||
-rw-r--r-- | app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild (renamed from app-metrics/node_exporter/node_exporter-1.1.2.ebuild) | 8 |
6 files changed, 10 insertions, 134 deletions
diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index 31f886cba920..f79fd6ee9615 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -1,7 +1,6 @@ -AUX node_exporter-1.initd 697 BLAKE2B 3c82d0d3f19f57e05dd1aee5be7397ff2c0f48ece8621ddac0f338fac83cf5ac76b82a6c158f07fdde1db64afbbc40f50305ac1380717b65f3f0d6fb2b90f013 SHA512 a51203241eca8aba0b0ec13afa1e8fed94bb9f3aaf48851f12e193ed7e395812cbb782fd41da793ac3dd79f978c5f71bf282ed144521c6ba718ca57bcc734dcf AUX node_exporter.confd 111 BLAKE2B bb40370633c41a4f1283677ed16ad9734c7f180683e4d9d82be36ea5e63d3b8fc2a861a61c62e2e899209f7293588e3e7532ffe52ecb9aab4773a3943168d5dd SHA512 cce5db8eccf2ecfe1198aa8252b04fd6a96006f707e7132c2d01c5400d175551c3b9890c4d57fec9ccbe17594dfb937e1f99ead0e1c3fd8cf22930dabd70418d AUX node_exporter.initd 701 BLAKE2B 6dbe6f147332580c2f1433d293649d818bcb0033faf0cd14567eb1f017a677b3a5568a51c3fe9929d3e6f9f96455d96138709444cba8024235084dbfcaf5b78b SHA512 9af0a58796aa087f1dfbe00bc25e4af0d3a7e4054071bfecd76b9e3dbc3c222b649fe0f7c2a5907ce733d3c0cc3eba127d5815366a749fc16952d1c6b9d397ae -AUX node_exporter.service 188 BLAKE2B 3e8c0598afc0d52193912cd34e8daaccad1ec6c58d93ee442789851d471b3b89bb6195c3e499560024b4259d8845df11efd51827f9e3f338987083d84601b5aa SHA512 2f61c1b651ec30d8a75da137d6da1cd82b51e87e11264e3109ff28c7269493c746feba52d63b25441dae82dd04d48cca94eb049fed6e63e6cd4297830260499c +AUX node_exporter.service 223 BLAKE2B 1d6646c85ac4da5ad6c8b62ec932d0e7dae6f6cd02a1148c4641562f21b9807fe371adef564804812c81df0252043be74abe7f4f980221f2ce4b762e4186cdbd SHA512 7d7c5122773cfd2ad9f4cf987b259ed98788cbba0288485cf1a32f0b973353b6ed93e0e03320a5bfdf0d5431c050de918a1ae912b140355d14d817b383cc920e DIST cloud.google.com%2Fgo%2F@v%2Fv0.26.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273 DIST cloud.google.com%2Fgo%2F@v%2Fv0.34.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273 DIST github.com%2F!burnt!sushi%2Ftoml%2F@v%2Fv0.3.1.mod 34 BLAKE2B ce54a247aef91043830bdf0603c8452ba38eceb1495af6e7a74c9119234a0dc5cd080cb25258c28f5e270acf91189a5ed33e361cbf17de2be5e37dadbda1d90d SHA512 320941bc3b7fb8bc595e6135cbc513a7583d129f0cd92508055291e141191066303cf75148e25198c21f6c6c539a790ea3210f3ecf5de6a2a03b70c753091146 @@ -561,12 +560,8 @@ DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20190102054323-c2f93a96b099.mod 26 BLA DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20190523083050-ea95bdfd59fc.mod 26 BLAKE2B db6cc87a17bed88b955e6b36a17568930239c94a969211b02c2d5acc70386fbea63ac44365a0d3241e900125bd64644d698d8f1bdcabc3e6cf99c47259c63df5 SHA512 d00ae74b24e7fb3ff351ff68b88e59636153bbcf92b36e81e91556e3e75a7ccfb08ce471f757f92fd7612378944de3d7309c73923812e2df6a26b74e999ca9ce DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.1-2019.2.3.mod 300 BLAKE2B 3e3f5a2be0918cbaacd5e43e59fcc6c7c6999645f0c9214cd5a522c31d34b6d3dad61e3ddae8ccdb2f3f0d90b406c047802ee3d9d54dc40fe6eff9cd35620792 SHA512 0c8aa788d0c03d6d049f0dd7468d0f81ce2131ccedd5a5a3a18362b7d30eef7ef325277844eefe4b707b1ad71c6f83a44e110b7af7b98e05406d347237a7bafb DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.1-2019.2.3.zip 506912 BLAKE2B a38cb31fd8df49dae4ff187e67704b5586ba78a0dcfe5afa3b820f0ac80f7e12ba4bdb705caa97c6be85407fe97599d1244d2f56f0e9e36554ba43289d9f21d8 SHA512 3285ab90762ee6b771c95e1c842ab308f04ac366ddfa693040c49d8951bb01db33994eb69c2c9dfd6ab2b379b29cbfe31558ca6b6aafe3feea1e693b2a36d0cb -DIST node_exporter-0.18.1.tar.gz 2110072 BLAKE2B 48c73d00cba892e34e95d40bd29c9ca70bc5748590f00cb7f8adcd25d8a9504f669d887b1273cc65316ca55b06c36d97a3e19a66382f35d5768db7c315981a13 SHA512 cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0 -DIST node_exporter-1.0.1.tar.gz 2792033 BLAKE2B 4e86c348a293e8a4a8d5e22fe99871d84a817cfbbe3ac10b0e7b4fbba3ae7b12352c619f140e3568aa2fb3e4cdfdbde0d19d792497a0b0007b634cb3a4d21e38 SHA512 0643042a04494a65d1ebdedf78671a1e3473b7ac6f3bc606fa2c52e893dfc68b591ef7e38ac6768c4c529c25b831811c01839475a4fde9baeb0a6c581a57839f DIST node_exporter-1.1.2.tar.gz 313873 BLAKE2B daeedd913ae5bf6d2d21ae7a1d496b48850d5f3363f60dc4b1b715f000c412709452568ec33a5b4ade166512698a129866e28a145b66638b81c056f49963c3f4 SHA512 d40ea07fa0bccaa8843e99034af9a4853e7885e6b851c89db8fa49a133a8db6ea75ea8b829a982c0b78961b9ed33b1b9356f5e25d72a7c9e4ce255b32335911b DIST sigs.k8s.io%2Fyaml%2F@v%2Fv1.1.0.mod 24 BLAKE2B d33080dbc62b185d029eb43f75d66328dbfa7c463a3117b3efd5419ab8e1e52cc6f5d5a288d553421025c785ec6948b3aa68588cae19bd325f6acc0d043bb5fb SHA512 78f6402daccb04510f4ef35ee457ee13e4f447fba8e6aa33b4d32aa666e925861bf3b3f22c5ba9573871ec7e830f99e4caae0969724a54eadf40e6a7ed7931a0 DIST sourcegraph.com%2Fsourcegraph%2Fappdash%2F@v%2Fv0.0.0-20190731080439-ebfcffb1b5c0.mod 43 BLAKE2B 44d562f1cdabdb24ca05eb508183dc158939129a4cf6ec0c58815076367b2902b660ee0ef526aa01e920846fb633d001c499bf63a3cea16494213eec41587408 SHA512 7d863e4af4e480a247bc767d1de96ff8050b12a13a182a9a8fa68c983c2f0b1a16b509d40de3cca552082535f876458034e1510f0f0feef383f16e1f84f81282 -EBUILD node_exporter-0.18.1.ebuild 1452 BLAKE2B 9bfd50a37838b40c36a94197ff5cd39ef38b9f553d2fe3169bdf33cbd2055f40825fd0e4645369fdf0c375d15fd82e62885316b5772556db26e4345d8cbe9149 SHA512 80791542bbbdca7b3ec58f8f25d3c84a13b52809d1981af94bb91cdf5edc0f613e93ce53c4b71da8d805a0f19935bace4c941b4f8d4f20e82e70bea3eed37699 -EBUILD node_exporter-1.0.1.ebuild 1251 BLAKE2B 9bd450bb2b143043912e8aeff59ac161516f1b220b026898ab31fd80eaeada00f46d206152e8d2b89c76167e3d7cdb6ad47a0673e87ab7200edb76d8d144319f SHA512 7ba2b66ff69a33596eb6ed08523da98f2a25726e1a60c255528b3d7490e049c7396eeb71d86e1a3e60f9862ce8d9963b5eb3e05c84226fe98b6c2a806805f150 -EBUILD node_exporter-1.1.2.ebuild 31612 BLAKE2B c6b72ce222364571447fe53050a964acc17f6723692413146316247a02e3b92992a569f7f6487a7031d846aeab40877c4755b200e50c0cc256bc5bfc5b88ffe4 SHA512 c0b3b2d46d288f0944642d413bba5d1d91af3637da89d3584cc2530e4563dc59a4517fef513c5172e852a1c9b5570f6e56301abc4314d82e8ff9409642ce66ef +EBUILD node_exporter-1.1.2-r1.ebuild 31521 BLAKE2B ea0fc9ad2bd284b467985f01f91e6e77943439dd0c4d1b1ad7656bc96eb6a147b6c23b60d81734b68d41798aba1eb60d29844db249b4f26133f3ce0fd1499271 SHA512 989db2b1bdbd6b6741c35da128f624a8cc80401ebd209bf197d448d4fcbef1555a4e48bc017abdb9405ef61198dc72fc092fa217932b8d9cfde3efaf8a475f7c MISC metadata.xml 337 BLAKE2B d9d866eca2162bd2c647a92d7c2c21eea95e944d81f9f4eb0911f0b111ed4eb62f2bf2c6042afe1a12caf58694ac692498923f9da2733c4fcb4419946e3eb613 SHA512 9a616d85dc1a26ce5bdd84f6a08f5cfaed1f273ee62d3fdec395507b0cfe0cbd23db13c8380671caada62f81e202a2a9ea4793dca6b6f6a88fe6dea9bcf7b8c0 diff --git a/app-metrics/node_exporter/files/node_exporter-1.initd b/app-metrics/node_exporter/files/node_exporter-1.initd deleted file mode 100644 index 083cba9cddd4..000000000000 --- a/app-metrics/node_exporter/files/node_exporter-1.initd +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Prometheus machine metrics exporter" -pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} -user=${user:-${RC_SVCNAME}} -group=${group:-${RC_SVCNAME}} - -command="/usr/bin/node_exporter" -command_args="${command_args:---collector.textfile.directory=/var/lib/node_exporter/}" -command_background="true" -start_stop_daemon_args="--user ${user} --group ${group} \ - --stdout /var/log/node_exporter/${RC_SVCNAME}.log \ - --stderr /var/log/node_exporter/${RC_SVCNAME}.log" - -depend() { - after net -} - -start_pre() { - checkpath -q -d -m 0755 -o ${user}:${group} /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/files/node_exporter.service b/app-metrics/node_exporter/files/node_exporter.service index 3235924f7850..20eac483fc8a 100644 --- a/app-metrics/node_exporter/files/node_exporter.service +++ b/app-metrics/node_exporter/files/node_exporter.service @@ -1,10 +1,13 @@ [Unit] Description=Node Exporter +Wants=network-online.target +After=network-online.target [Service] User=node_exporter -EnvironmentFile=/etc/sysconfig/node_exporter -ExecStart=/usr/bin/node_exporter $OPTIONS +Group=node_exporter +Type=simple +ExecStart=/usr/sbin/node_exporter [Install] WantedBy=multi-user.target diff --git a/app-metrics/node_exporter/node_exporter-0.18.1.ebuild b/app-metrics/node_exporter/node_exporter-0.18.1.ebuild deleted file mode 100644 index 05bfaba831bb..000000000000 --- a/app-metrics/node_exporter/node_exporter-0.18.1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot systemd - -EGO_PN="github.com/prometheus/node_exporter" -EGIT_COMMIT="v${PV/_rc/-rc.}" -NODE_EXPORTER_COMMIT="3db7773" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="amd64" - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0 BSD BSD-2 MIT" -SLOT="0" -IUSE="" - -DEPEND=">=dev-lang/go-1.12 - >=dev-util/promu-0.3.0" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - mkdir -p bin || die - GO111MODULE=on GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v --prefix node_exporter || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin node_exporter/node_exporter - dodoc {README,CHANGELOG,CONTRIBUTING}.md - systemd_dounit examples/systemd/node_exporter.service - insinto /etc/sysconfig/node_exporter - doins examples/systemd/sysconfig.node_exporter - popd || die - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter - newinitd "${FILESDIR}"/${PN}-1.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} diff --git a/app-metrics/node_exporter/node_exporter-1.0.1.ebuild b/app-metrics/node_exporter/node_exporter-1.0.1.ebuild deleted file mode 100644 index ca15b40f88a0..000000000000 --- a/app-metrics/node_exporter/node_exporter-1.0.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit go-module systemd -MY_PV="v${PV/_rc/-rc.}" -NODE_EXPORTER_COMMIT=3715be6 - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" -SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 BSD BSD-2 MIT" -SLOT="0" -KEYWORDS="~amd64" - -CDEPEND="acct-group/node_exporter - acct-user/node_exporter" -DEPEND=">=dev-util/promu-0.3.0 - ${CDEPEND}" -RDEPEND="${CDEPEND}" - -S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" .promu.yml || die -} - -src_compile() { - mkdir -p bin || die - promu build -v --prefix node_exporter || die -} - -src_install() { - dosbin node_exporter/node_exporter - dodoc {README,CHANGELOG,CONTRIBUTING}.md - systemd_dounit examples/systemd/node_exporter.service - insinto /etc/sysconfig - newins examples/systemd/sysconfig.node_exporter node_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/node_exporter-1.1.2.ebuild b/app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild index dc94a55d0c6e..d3c63f4c9580 100644 --- a/app-metrics/node_exporter/node_exporter-1.1.2.ebuild +++ b/app-metrics/node_exporter/node_exporter-1.1.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -578,7 +578,7 @@ SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> LICENSE="Apache-2.0 BSD BSD-2 MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" CDEPEND="acct-group/node_exporter acct-user/node_exporter" @@ -602,9 +602,7 @@ src_compile() { src_install() { dosbin node_exporter/node_exporter dodoc {README,CHANGELOG,CONTRIBUTING}.md - systemd_dounit examples/systemd/node_exporter.service - insinto /etc/sysconfig - newins examples/systemd/sysconfig.node_exporter node_exporter + systemd_dounit "${FILESDIR}"/node_exporter.service newinitd "${FILESDIR}"/${PN}.initd ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} keepdir /var/lib/node_exporter /var/log/node_exporter |