]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/prometheus.yml.erb
Fix URL for Intel MAS CLI Tool
[chef.git] / cookbooks / prometheus / templates / default / prometheus.yml.erb
index 812f3229913fb16fae1686a9f9469d9ec00610b9..d972d2948172d5f40e965ea9a8c67a3d164828bf 100644 (file)
@@ -84,6 +84,9 @@ scrape_configs:
           - "<%= target[:target] %>/<%= target[:module] %>/<%= target[:address] %>"
         labels:
           instance: <%= target[:instance] %>
+<% target[:labels].sort.each do |name, value| -%>
+          <%= name %>: <%= value %>
+<% end -%>
 <% end -%>
     relabel_configs:
       - source_labels: [__address__]