Deploy `exporter_proxy` config under `/etc/prometheus_exporters.d/exporter_proxy`.
This commit is contained in:
parent
ec906dae58
commit
839e1449d4
|
@ -1,6 +1,6 @@
|
||||||
URL = 'https://github.com/rrreeeyyy/exporter_proxy/releases/download/v0.1.0/exporter_proxy_linux_amd64'
|
URL = 'https://github.com/rrreeeyyy/exporter_proxy/releases/download/v0.1.0/exporter_proxy_linux_amd64'
|
||||||
BIN = '/usr/local/bin/exporter_proxy'
|
BIN = '/usr/local/bin/exporter_proxy'
|
||||||
CONFDIR = '/etc/exporter_proxy/'
|
CONFDIR = '/etc/prometheus_exporters.d/exporter_proxy/'
|
||||||
CONF = 'config.yml'
|
CONF = 'config.yml'
|
||||||
|
|
||||||
execute "wget #{URL} -O #{BIN}" do
|
execute "wget #{URL} -O #{BIN}" do
|
||||||
|
|
|
@ -16,6 +16,6 @@ exporters:
|
||||||
node_exporter:
|
node_exporter:
|
||||||
path: "/node_exporter/metrics"
|
path: "/node_exporter/metrics"
|
||||||
url: "http://127.0.0.1:9100/metrics"
|
url: "http://127.0.0.1:9100/metrics"
|
||||||
statup_exporter:
|
filestat_exporter:
|
||||||
path: "/statup_exporter/metrics"
|
path: "/filestat_exporter/metrics"
|
||||||
url: "http://127.0.0.1:8080/metrics"
|
url: "http://127.0.0.1:9943/metrics"
|
|
@ -1,5 +1,5 @@
|
||||||
[program:exporter_proxy]
|
[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
|
stdout_logfile=/var/log/supervisor/exporter_proxy.log
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
stdout_logfile_maxbytes=1MB
|
stdout_logfile_maxbytes=1MB
|
||||||
|
|
Loading…
Reference in New Issue