static_configs:
- targets:
- localhost:9090
-<% @clients.each do |client| -%>
- - job_name: <%= client.name %>
+<% @jobs.sort.each do |name, targets| -%>
+ - job_name: <%= name %>
static_configs:
+<% targets.each do |target| -%>
- targets:
-<% client[:prometheus][:exporters].sort.each do |_,address| -%>
- - <%= address %>
+ - "<%= target[:address] %>"
+ labels:
+ instance: <%= target[:name].split(".").first %>
<% end -%>
<% end -%>