diff options
Diffstat (limited to 'app-metrics/ceph_exporter')
-rw-r--r-- | app-metrics/ceph_exporter/Manifest | 5 | ||||
-rw-r--r-- | app-metrics/ceph_exporter/ceph_exporter-4.1.1.ebuild | 35 | ||||
-rw-r--r-- | app-metrics/ceph_exporter/files/ceph_exporter.initd | 7 |
3 files changed, 39 insertions, 8 deletions
diff --git a/app-metrics/ceph_exporter/Manifest b/app-metrics/ceph_exporter/Manifest index 7ff2d73559ae..caadbf6c1b74 100644 --- a/app-metrics/ceph_exporter/Manifest +++ b/app-metrics/ceph_exporter/Manifest @@ -1,6 +1,9 @@ AUX ceph_exporter.confd 48 BLAKE2B 617ddc4f13ee9307f331d0c8de9b9e329786fccc0bbf68211863b61f5a32351a2936972278ef8fe283e0a2cc9ea2ce55d14412cb9777bf88aa9c3a49b3eddfe4 SHA512 bc5be0687671d08d28288d652eae7f699cb406989efa49ccfa38bcf4e8f6ceaf2ca5e2d2a81e5224cfcab7b712b52cca37d5cd0ea2e2b7f49abf8720e217fe00 -AUX ceph_exporter.initd 670 BLAKE2B 57b1ee2932309892f534f363643a93f1e92acf6dc53108d54c9d571574a137e3200440b9b6fce8460ec2c6f7a3b1b4b830be5425b7a76765b1532aa9f8ddf249 SHA512 5014b09cd1cf1ad1e8fa43de16a886b53af43ac011bd94bf517277eb58c4a6739066f5bd7303fd0d9f7fe5b713b5d4305db1dc45916f0677f9f71c0de355b3f7 +AUX ceph_exporter.initd 508 BLAKE2B dfee0d329912868a9b581290e437ebf23a3c53b17d6371d167d6cf9b3983b846d6ff18877d967b8e5d512b032f7141f80aedf8c01a2d0d01dd4c0c6864077cc4 SHA512 babb45c4341ee178cd2d165469c3552149425d099d6621291e07a4934d2cb1baac171e1536aa5df5f59188a21edc81d111a94dac13083ca952c0ab1754644715 DIST ceph_exporter-4.0.1-deps.tar.xz 7402752 BLAKE2B 4619eba4c1630cd683193fec8f449698587dc8d17c26992e033fa7495934de26bcca84fac4ac174e25e7f405c27033fc324703748cac59f90b6e58c2548f8cd2 SHA512 893a6d246c640647ac55f5f32d657cbd80bec3c9404e1484e6188e4e045a20d01d50559723105f179d438019f66d904938a24ce164f85a41631930067d92f7ba DIST ceph_exporter-4.0.1.tar.gz 143653 BLAKE2B 2a8c907fb5ff06bc629644aab94b450646f6b25ff057d2b01485f0131cef3e64e3b159f029f29cf78c8d6b450ff9b750858799fe079256509e31e5b8bcf3e012 SHA512 154e75cc397635450d2b99e5e56c829fd5816e9aad95707eff42500ce21fd92a6d12772a58530b580b8e14e5db7c32d2d24f395175f414df9d89fbcbb8239ece +DIST ceph_exporter-4.1.1-deps.tar.xz 7386488 BLAKE2B d5ccacba93ae8ee0f03f349860e02e19bb52a5bd6af7ec1b2c6209d29834a74a6934f19a9435f5be1539e6f141ec41e1219b62660aff90a529513b91a3d0649e SHA512 a6f9a8053d3a8957bd03535089c3bb3c818f153f69c2488db08d0fc9a63f7d30ff3b490b0f0fd81399153a19c853239a9744564881c159bc88f5cf91807e10b0 +DIST ceph_exporter-4.1.1.tar.gz 146022 BLAKE2B d833b59418148efb1008d7d444f27a9310d1214197abfb022f74c8fd7af15eceb04c26bab8307eca80bbb4c60b54e7469da74562e38e06cbf7c3559f01d2e0d2 SHA512 1f840d02b50c6cd55c1fb78d44a9fb0beafd241168d3c1d4ad2a9ede67a4fd67b48311de8af0b637a07b04a562938afb72a3379a3c40d765f73923024a8ddd62 EBUILD ceph_exporter-4.0.1.ebuild 939 BLAKE2B 575f51efcfa7aa42de719f2ac2c8a1760afc5a2fd13f8cbc79ae2401dcaa78b72887938076b6fa6c8769dd4903d05b81f41585d77be872a3677c512ddc9747d5 SHA512 6797ad6fedb132e3caaf465f47a18411791a8f0c9d40a02cd3860c177a381d543775ac47af01a100052de47ea19aae6f4eee0bf90e3db60993f45f970010cbdd +EBUILD ceph_exporter-4.1.1.ebuild 939 BLAKE2B 576fec9360493d90dd1f38c74bfdfe096eb412df2e17fc4de0285ab0eb9b514ed246483ecaacd775b628228ce2b60173ccf07ce353911a81b59cfdc515cda12a SHA512 38c9d3e19d30b00babe69bebfc4146877c391cb82881cd37d6e742272637067ba4dc0e6335acc7a61f90973fd2223feee13df2026ea6f8ac6c79de4cdf9ecbcb MISC metadata.xml 243 BLAKE2B 63665ae2020bc799fa6ebd6e1fca6755be6498803fdbc17cc630f9f4ffa03fbd46a9ad396e70adc3bc1c32b0a746fe4bab1c6291f32e68e636251207bca9e95c SHA512 78eab20831018fcf4957171a83aaaca9ced53380e01f083c07450c30fa1adfc02dd50ff2fa9f491dd62802f6e779264add1c47a09ade0a35cda558c1d5529ad0 diff --git a/app-metrics/ceph_exporter/ceph_exporter-4.1.1.ebuild b/app-metrics/ceph_exporter/ceph_exporter-4.1.1.ebuild new file mode 100644 index 000000000000..5f3d00131b19 --- /dev/null +++ b/app-metrics/ceph_exporter/ceph_exporter-4.1.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Prometheus exporter that scrapes metrics from a ceph cluster" +HOMEPAGE="https://github.com/digitalocean/ceph_exporter" +SRC_URI="https://github.com/digitalocean/ceph_exporter/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-group/ceph + acct-user/ceph + =sys-cluster/ceph-16* +" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-lang/go-1.18" + +src_compile() { + go build -o bin/ceph_exporter || die +} + +src_install() { + dobin bin/ceph_exporter + dodoc {README,CONTRIBUTING}.md exporter.yml + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + keepdir /var/lib/ceph_exporter /var/log/ceph_exporter + fowners ceph:ceph /var/lib/ceph_exporter /var/log/ceph_exporter +} diff --git a/app-metrics/ceph_exporter/files/ceph_exporter.initd b/app-metrics/ceph_exporter/files/ceph_exporter.initd index 59632972d1be..980779c5f935 100644 --- a/app-metrics/ceph_exporter/files/ceph_exporter.initd +++ b/app-metrics/ceph_exporter/files/ceph_exporter.initd @@ -16,10 +16,3 @@ start_stop_daemon_args="--user ${user} --group ${group}" depend() { after net } - -start_pre() { - if [ ! -f "/etc/ceph/ceph.${user}.keyring" ]; then - eerror "keyring not found, exporter won't be able to connect to the cluster!" - exit 1 - fi -} |