]> git.openstreetmap.org Git - chef.git/commitdiff
Apply relabelling to correct jobs
authorTom Hughes <tom@compton.nu>
Mon, 25 Jan 2021 13:51:13 +0000 (13:51 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 25 Jan 2021 13:51:13 +0000 (13:51 +0000)
cookbooks/prometheus/templates/default/prometheus.yml.erb

index d90c8292b8a4d3a3ef2041667f2a01d02f48f037..e06c0254934f19643fba7b08e53b3239a03b7a60 100644 (file)
@@ -35,10 +35,8 @@ scrape_configs:
           - "<%= target[:address] %>"
         labels:
           instance: <%= target[:instance] %>
-<% end -%>
 <% end -%>
     metric_relabel_configs:
-<% @jobs.sort.each do |name, targets| -%>
 <% targets.each do |target| -%>
 <% target[:metric_relabel].each do |relabel| -%>
       - source_labels: [instance,<%= relabel[:source_labels] %>]