diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-metrics/mongodb_exporter/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-metrics/mongodb_exporter/files')
-rw-r--r-- | app-metrics/mongodb_exporter/files/mongodb_exporter.confd | 2 | ||||
-rw-r--r-- | app-metrics/mongodb_exporter/files/mongodb_exporter.initd | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app-metrics/mongodb_exporter/files/mongodb_exporter.confd b/app-metrics/mongodb_exporter/files/mongodb_exporter.confd new file mode 100644 index 000000000000..bd85fa288304 --- /dev/null +++ b/app-metrics/mongodb_exporter/files/mongodb_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus mongodb exporter +command_args="-mongodb.uri=http://localhost:9200" diff --git a/app-metrics/mongodb_exporter/files/mongodb_exporter.initd b/app-metrics/mongodb_exporter/files/mongodb_exporter.initd new file mode 100644 index 000000000000..2a2c985c4f64 --- /dev/null +++ b/app-metrics/mongodb_exporter/files/mongodb_exporter.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2016-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus MongoDB exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/mongodb_exporter" +command_args="${command_args:--mongodb.uri=http://localhost:27017}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/elasticsearch_exporter/${RC_SVCNAME}.log \ + --stderr /var/log/elasticsearch_exporter/${RC_SVCNAME}.log" + +depend() { + after net +} |