]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
Use a numeric mtu
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index 826c1c1f71cd4ea359c0ce8f36040b4cd920d5fe..69cb80e142497d82f926615a9f154653cd2b2b6a 100644 (file)
@@ -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