]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/prometheus.yml.erb
02c71fefdfa93a2ab23634f8462277ac39e1cb27
[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 <% @jobs.sort.each do |name, targets| -%>
24   - job_name: <%= name %>
25     static_configs:
26 <% targets.each do |target| -%>
27       - targets:
28           - "<%= target[:address] %>"
29         labels:
30           instance: <%= target[:name].split(".").first %>
31 <% end -%>
32 <% end -%>
33
34 # remote_write:
35 #   - url: "http://localhost:9201/write"