1 # DO NOT EDIT - This file is being maintained by Chef
5 evaluation_interval: 15s
9 - path_prefix: /alertmanager
15 - /etc/prometheus/*_rules.yml
18 - job_name: prometheus
21 metrics_path: /prometheus/metrics
25 - job_name: alertmanager
26 metrics_path: /alertmanager/metrics
30 <% @jobs.sort.each do |name, targets| -%>
31 - job_name: <%= name %>
33 <% targets.each do |target| -%>
35 - "<%= target[:address] %>"
37 instance: <%= target[:instance] %>
39 metric_relabel_configs:
40 <% targets.each do |target| -%>
41 <% target[:metric_relabel].each do |relabel| -%>
42 - source_labels: [instance,<%= relabel[:source_labels] %>]
43 regex: "<%= target[:instance] %>;<%= relabel[:regex] %>"
44 action: <%= relabel[:action] %>
50 # - url: "http://localhost:9201/write"