]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/prometheus.yml.erb
Add initial version of prometheus cookbook
[chef.git] / cookbooks / prometheus / templates / default / prometheus.yml.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 global:
4   scrape_interval: 15s
5   evaluation_interval: 15s
6
7 scrape_configs:
8   - job_name: prometheus
9     scrape_interval: 5s
10     scrape_timeout: 5s
11     static_configs:
12       - targets:
13           - localhost:9090
14 <% @clients.each do |client| -%>
15   - job_name: <%= client.name %>
16     static_configs:
17       - targets:
18 <% client[:prometheus][:exporters].sort.each do |_,address| -%>
19           - <%= address %>
20 <% end -%>
21 <% end -%>