]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/prometheus.yml.erb
Configure SMTP for prometheus
[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 <% @jobs.sort.each do |name, addresses| -%>
15   - job_name: <%= name %>
16     static_configs:
17       - targets:
18 <% addresses.sort.each do |address| -%>
19           - <%= address %>
20 <% end -%>
21 <% end -%>