X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6cdd946b4e56b4a6593a5f7df3051c7ba95bebeb..11db8a461a61c0aba4259c9a3564d0e72bacc412:/cookbooks/prometheus/templates/default/chef.prom.erb diff --git a/cookbooks/prometheus/templates/default/chef.prom.erb b/cookbooks/prometheus/templates/default/chef.prom.erb index fd8089f4b..8d6506eae 100644 --- a/cookbooks/prometheus/templates/default/chef.prom.erb +++ b/cookbooks/prometheus/templates/default/chef.prom.erb @@ -1,7 +1,7 @@ # HELP chef_network_interface Information about network interfaces # TYPE chef_network_interface gauge -<% node.interfaces do |interface| -%> -chef_network_interface{name="<%= interface[:interface] %>",role="<%= interface[:role].to_s %>",family="<%= interface[:family].to_s %>"} 1 +<% node.interfaces.each do |interface| -%> +chef_network_interface{name="<%= interface[:interface] %>",role="<%= interface[:role].to_s %>"} 1 <% end -%> # HELP chef_role Information about chef roles # TYPE chef_role gauge