diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-03-27 13:11:32 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-03-27 13:11:32 +0200 |
commit | 69e46dc76012b866bc91bd92649abc27e53f9075 (patch) | |
tree | c799525a1841fbaf629b05ff81080611bf1c151e /app-metrics/nginx-vts-exporter/files | |
parent | sys-cluster/kube-proxy: Remove old (diff) | |
download | gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.tar.gz gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.tar.bz2 gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.zip |
app-metrics/nginx-vts-exporter: Move package from app-admin/nginx-vts-exporter
Diffstat (limited to 'app-metrics/nginx-vts-exporter/files')
-rw-r--r-- | app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.confd | 2 | ||||
-rw-r--r-- | app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.initd | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.confd b/app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.confd new file mode 100644 index 000000000000..ae134353a235 --- /dev/null +++ b/app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus nginx virtual host traffic stats exporter +command_args="-nginx.scrape_uri=http://localhost/status/format/json" diff --git a/app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.initd b/app-metrics/nginx-vts-exporter/files/nginx-vts-exporter.initd new file mode 100644 index 000000000000..f61549b061d7 --- /dev/null +++ b/app-metrics/nginx-vts-exporter/files/nginx-vts-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 nginx virtual host traffic status exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/nginx-vts-exporter" +command_args="${command_args:--nginx.scrape_uri=http://localhost/status/format/json}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" + +depend() { + after net +} |