public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-metrics/process-exporter/, app-metrics/process-exporter/files/
@ 2019-01-17 21:54 William Hubbs
  0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2019-01-17 21:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e2f7ef62c8ff7c37ddf48546f6a7d986b5cf6826
Author:     William Hubbs <william.hubbs <AT> sony <DOT> com>
AuthorDate: Thu Jan 17 21:51:47 2019 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 21:54:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f7ef62

app-metrics/process-exporter: 0.4.0-r1 bump

Add logging and make pidfile have the same name as the service.

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 .../process-exporter/files/process-exporter.initd  |  8 ++++--
 .../process-exporter-0.4.0-r1.ebuild               | 33 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/app-metrics/process-exporter/files/process-exporter.initd b/app-metrics/process-exporter/files/process-exporter.initd
index d739825ecdf..f25eadc2a11 100644
--- a/app-metrics/process-exporter/files/process-exporter.initd
+++ b/app-metrics/process-exporter/files/process-exporter.initd
@@ -1,8 +1,12 @@
 #!/sbin/openrc-run
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
 
 description="Process Exporter for Prometheus"
 command=/usr/bin/process-exporter
 command_args="--config.path /etc/process-exporter/all.yaml
-	--web.listen-address=:9256 ${COMMAND_ARGS}"
+	${COMMAND_ARGS}"
 command_background=yes
-pidfile=/var/run/process-exporter.pid
+error_log=/var/log/process-exporter/${RC_SVCNAME}.log
+output_log=/var/log/process-exporter/${RC_SVCNAME}.log
+pidfile=/var/run/${RC_SVCNAME}.pid

diff --git a/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild b/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild
new file mode 100644
index 00000000000..1ce159062a8
--- /dev/null
+++ b/app-metrics/process-exporter/process-exporter-0.4.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+EGO_PN=github.com/ncabatoff/process-exporter
+
+inherit golang-build golang-vcs-snapshot systemd
+
+DESCRIPTION="Process exporter for prometheus"
+HOMEPAGE="https://github.com/ncabatoff/process-exporter"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+
+src_compile() {
+	pushd "src/${EGO_PN}" || die
+	GOPATH="${S}" emake build
+}
+
+src_install() {
+	pushd "src/${EGO_PN}" || die
+	dobin ${PN}
+dodoc *.md
+	insinto /etc/${PN}
+	doins packaging/conf/all.yaml
+	systemd_dounit packaging/${PN}.service
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	keepdir /var/log/${PN}
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-metrics/process-exporter/, app-metrics/process-exporter/files/
@ 2019-01-10 22:06 William Hubbs
  0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2019-01-10 22:06 UTC (permalink / raw
  To: gentoo-commits

commit:     f9d7aa4ddb50ad0a34454a5d14646340731e2102
Author:     William Hubbs <william.hubbs <AT> sony <DOT> com>
AuthorDate: Thu Jan 10 22:05:01 2019 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 10 22:06:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d7aa4d

app-metrics/process-exporter: mine /proc to report process stats for prometheus

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-metrics/process-exporter/Manifest              |  1 +
 .../process-exporter/files/process-exporter.initd  |  8 ++++++
 app-metrics/process-exporter/metadata.xml          |  8 ++++++
 .../process-exporter/process-exporter-0.4.0.ebuild | 32 ++++++++++++++++++++++
 4 files changed, 49 insertions(+)

diff --git a/app-metrics/process-exporter/Manifest b/app-metrics/process-exporter/Manifest
new file mode 100644
index 00000000000..8cdb45f2e46
--- /dev/null
+++ b/app-metrics/process-exporter/Manifest
@@ -0,0 +1 @@
+DIST process-exporter-0.4.0.tar.gz 378006 BLAKE2B 053379e8e0cb95f099cebf53289c48c39d6c8ef22c8b0dcf0bd128453e601da98be9205bb5c7cda8a05d5f50addabbcb46f6ece44926da17c1bd8616e452783a SHA512 88f6f0e07bb7f3ea6c593ba359c09ace47eb0830ff0759b1f4dd64219a6c9069dc2891a328a90bdef13ea02efc576fb71de7ff095788b4dd45c2683c90904363

diff --git a/app-metrics/process-exporter/files/process-exporter.initd b/app-metrics/process-exporter/files/process-exporter.initd
new file mode 100644
index 00000000000..d739825ecdf
--- /dev/null
+++ b/app-metrics/process-exporter/files/process-exporter.initd
@@ -0,0 +1,8 @@
+#!/sbin/openrc-run
+
+description="Process Exporter for Prometheus"
+command=/usr/bin/process-exporter
+command_args="--config.path /etc/process-exporter/all.yaml
+	--web.listen-address=:9256 ${COMMAND_ARGS}"
+command_background=yes
+pidfile=/var/run/process-exporter.pid

diff --git a/app-metrics/process-exporter/metadata.xml b/app-metrics/process-exporter/metadata.xml
new file mode 100644
index 00000000000..c36c37139fa
--- /dev/null
+++ b/app-metrics/process-exporter/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>williamh@gentoo.org</email>
+		<name>William Hubbs</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/app-metrics/process-exporter/process-exporter-0.4.0.ebuild b/app-metrics/process-exporter/process-exporter-0.4.0.ebuild
new file mode 100644
index 00000000000..4ea9b6f62fa
--- /dev/null
+++ b/app-metrics/process-exporter/process-exporter-0.4.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+EGO_PN=github.com/ncabatoff/process-exporter
+
+inherit golang-build golang-vcs-snapshot systemd
+
+DESCRIPTION="Process exporter for prometheus"
+HOMEPAGE="https://github.com/ncabatoff/process-exporter"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+
+src_compile() {
+	pushd "src/${EGO_PN}" || die
+	GOPATH="${S}" emake build
+}
+
+src_install() {
+	pushd "src/${EGO_PN}" || die
+	dobin ${PN}
+dodoc *.md
+	insinto /etc/${PN}
+	doins packaging/conf/all.yaml
+	systemd_dounit packaging/${PN}.service
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-17 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-17 21:54 [gentoo-commits] repo/gentoo:master commit in: app-metrics/process-exporter/, app-metrics/process-exporter/files/ William Hubbs
  -- strict thread matches above, loose matches on Subject: below --
2019-01-10 22:06 William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox