]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/prometheus.yml.erb
b44654463a46473262c322809439a55037cb0a77
[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 alerting:
8   alertmanagers:
9     - static_configs:
10         - targets:
11             - localhost:9093
12
13 rule_files:
14   - /etc/prometheus/*_rules.yml
15
16 scrape_configs:
17   - job_name: prometheus
18     scrape_interval: 5s
19     scrape_timeout: 5s
20     static_configs:
21       - targets:
22           - localhost:9090
23   - job_name: alertmanager
24     static_configs:
25       - targets:
26           - localhost:9093
27 <% @jobs.sort.each do |name, targets| -%>
28   - job_name: <%= name %>
29     static_configs:
30 <% targets.each do |target| -%>
31       - targets:
32           - "<%= target[:address] %>"
33         labels:
34           instance: <%= target[:name].split(".").first %>
35 <% end -%>
36 <% end -%>
37
38 # remote_write:
39 #   - url: "http://localhost:9201/write"