diff --git a/cookbooks/prometheus/exporter_proxy.rb b/cookbooks/prometheus/exporter_proxy.rb index 129d248..55ffca2 100644 --- a/cookbooks/prometheus/exporter_proxy.rb +++ b/cookbooks/prometheus/exporter_proxy.rb @@ -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 diff --git a/cookbooks/prometheus/files/etc/exporter_proxy/config.yml b/cookbooks/prometheus/files/etc/prometheus_exporters.d/exporter_proxy/config.yml similarity index 82% rename from cookbooks/prometheus/files/etc/exporter_proxy/config.yml rename to cookbooks/prometheus/files/etc/prometheus_exporters.d/exporter_proxy/config.yml index ff1dc71..a6d0d27 100644 --- a/cookbooks/prometheus/files/etc/exporter_proxy/config.yml +++ b/cookbooks/prometheus/files/etc/prometheus_exporters.d/exporter_proxy/config.yml @@ -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" diff --git a/cookbooks/prometheus/files/etc/supervisor/conf.d/exporter_proxy.conf b/cookbooks/prometheus/files/etc/supervisor/conf.d/exporter_proxy.conf index 5099a5e..60b6944 100644 --- a/cookbooks/prometheus/files/etc/supervisor/conf.d/exporter_proxy.conf +++ b/cookbooks/prometheus/files/etc/supervisor/conf.d/exporter_proxy.conf @@ -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