X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/08cf52e21395d633afe7de03f255aaa0941bac1d..ba068e762338afcedfa788ba503ca1e201f1eb4a:/cookbooks/prometheus/resources/exporter.rb diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index 826c1c1f7..69cb80e14 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -56,7 +56,9 @@ action :create do only_if { node[:prometheus][:mode] == "external" } end - node.default[:prometheus][:exporters][new_resource.exporter] = listen_address + node.default[:prometheus][:exporters][new_resource.port] = { + :name => new_resource.exporter, :address => listen_address + } end action :delete do