summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2019-01-16 18:22:18 -0600
committerWilliam Hubbs <williamh@gentoo.org>2019-01-16 18:22:41 -0600
commit53579f6ef52737f51a1c3ea771be3790162ae8a9 (patch)
treef246f8b62e7d14968190a996ecf21105b7aff67f /app-metrics/grok_exporter/files
parentapp-metrics/snmp_exporter: Remove old (diff)
downloadgentoo-53579f6ef52737f51a1c3ea771be3790162ae8a9.tar.gz
gentoo-53579f6ef52737f51a1c3ea771be3790162ae8a9.tar.bz2
gentoo-53579f6ef52737f51a1c3ea771be3790162ae8a9.zip
app-metrics/grok_exporter: Unstructured log data exporter for Prometheus
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics/grok_exporter/files')
-rw-r--r--app-metrics/grok_exporter/files/grok_exporter.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-metrics/grok_exporter/files/grok_exporter.initd b/app-metrics/grok_exporter/files/grok_exporter.initd
new file mode 100644
index 000000000000..d38d0af63ab3
--- /dev/null
+++ b/app-metrics/grok_exporter/files/grok_exporter.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Unstructured log data exporter for Prometheus"
+config_file="${config_file:-/etc/${RC_SVCNAME}/${RC_SVCNAME}.yml}"
+command=/usr/bin/grok_exporter
+command_background=yes
+command_user=${RC_SVCNAME}:${RC_SVCNAME}
+pidfile=/var/run/${RC_SVCNAME}.pid
+error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+required_files="${config_file}"
+command_args="-config \"${config_file}\""
+
+depend() {
+ after net
+}