X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/67a9b76ebb212b99bf39f98688e8d6d0e8bcbfc2..bcc7d3796af2aa1bb18b17c1321f20ed5b17b964:/cookbooks/prometheus/templates/default/prometheus.yml.erb diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index 66051b622..46d241905 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -16,7 +16,7 @@ scrape_configs: static_configs: <% targets.each do |target| -%> - targets: - - <%= target[:address] %> + - "<%= target[:address] %>" labels: instance: <%= target[:name].split(".").first %> <% end -%>