summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2019-01-10 16:05:01 -0600
committerWilliam Hubbs <williamh@gentoo.org>2019-01-10 16:06:20 -0600
commitf9d7aa4ddb50ad0a34454a5d14646340731e2102 (patch)
tree572bc63aa0c11da0540a128f73db6a875489631e /app-metrics/process-exporter/files
parentmedia-gfx/geeqie: gtk3 is default in master branch (diff)
downloadgentoo-f9d7aa4ddb50ad0a34454a5d14646340731e2102.tar.gz
gentoo-f9d7aa4ddb50ad0a34454a5d14646340731e2102.tar.bz2
gentoo-f9d7aa4ddb50ad0a34454a5d14646340731e2102.zip
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@gentoo.org>
Diffstat (limited to 'app-metrics/process-exporter/files')
-rw-r--r--app-metrics/process-exporter/files/process-exporter.initd8
1 files changed, 8 insertions, 0 deletions
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 000000000000..d739825ecdfc
--- /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