]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/prometheus.yml.erb
Enable NTP collector for prometheus node exporter
[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, targets| -%>
15   - job_name: <%= name %>
16     static_configs:
17 <% targets.each do |target| -%>
18       - targets:
19           - "<%= target[:address] %>"
20         labels:
21           instance: <%= target[:name].split(".").first %>
22 <% end -%>
23 <% end -%>