Deploy `exporter_proxy` config under `/etc/prometheus_exporters.d/exporter_proxy`.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-27 14:25:51 +09:00
parent ec906dae58
commit 839e1449d4
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
URL = 'https://github.com/rrreeeyyy/exporter_proxy/releases/download/v0.1.0/exporter_proxy_linux_amd64'
BIN = '/usr/local/bin/exporter_proxy'
CONFDIR = '/etc/exporter_proxy/'
CONFDIR = '/etc/prometheus_exporters.d/exporter_proxy/'
CONF = 'config.yml'
execute "wget #{URL} -O #{BIN}" do

View File

@ -16,6 +16,6 @@ exporters:
node_exporter:
path: "/node_exporter/metrics"
url: "http://127.0.0.1:9100/metrics"
statup_exporter:
path: "/statup_exporter/metrics"
url: "http://127.0.0.1:8080/metrics"
filestat_exporter:
path: "/filestat_exporter/metrics"
url: "http://127.0.0.1:9943/metrics"

View File

@ -1,5 +1,5 @@
[program:exporter_proxy]
command=/usr/local/bin/exporter_proxy -config /etc/exporter_proxy/config.yml
command=/usr/local/bin/exporter_proxy -config /etc/prometheus_exporters.d/exporter_proxy/config.yml
stdout_logfile=/var/log/supervisor/exporter_proxy.log
redirect_stderr=true
stdout_logfile_maxbytes=1MB