diff --git a/cookbooks/prometheus/exporter_proxy.rb b/cookbooks/prometheus/exporter_proxy.rb index 649560e..129d248 100644 --- a/cookbooks/prometheus/exporter_proxy.rb +++ b/cookbooks/prometheus/exporter_proxy.rb @@ -42,7 +42,7 @@ service 'supervisor' do end # Firewall settings here: -%w( 9099/tcp ).each do |p| +%w( 60000/tcp ).each do |p| execute "ufw allow #{p}" do user 'root' diff --git a/cookbooks/prometheus/files/etc/consul-template.d/prometheus-targets.tmpl b/cookbooks/prometheus/files/etc/consul-template.d/prometheus-targets.tmpl index e75fde3..56232d0 100644 --- a/cookbooks/prometheus/files/etc/consul-template.d/prometheus-targets.tmpl +++ b/cookbooks/prometheus/files/etc/consul-template.d/prometheus-targets.tmpl @@ -1,2 +1,2 @@ - targets:{{range nodes}} - - {{.Address}}:9099{{end}} + - {{.Address}}:60000{{end}} diff --git a/cookbooks/prometheus/files/etc/exporter_proxy/config.yml b/cookbooks/prometheus/files/etc/exporter_proxy/config.yml index e6daf87..ff1dc71 100644 --- a/cookbooks/prometheus/files/etc/exporter_proxy/config.yml +++ b/cookbooks/prometheus/files/etc/exporter_proxy/config.yml @@ -1,5 +1,5 @@ # listen: Addr and port to listen (required) -listen: "0.0.0.0:9099" +listen: "0.0.0.0:60000" # access_log (optional) access_log: