]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / cephadm / templates / services / prometheus / prometheus.yml.j2
1 # {{ cephadm_managed }}
2 global:
3 scrape_interval: 10s
4 evaluation_interval: 10s
5 rule_files:
6 - /etc/prometheus/alerting/*
7 {% if alertmgr_targets %}
8 alerting:
9 alertmanagers:
10 - scheme: http
11 path_prefix: /alertmanager
12 static_configs:
13 - targets: [{{ alertmgr_targets|join(', ') }}]
14 {% endif %}
15 scrape_configs:
16 - job_name: 'ceph'
17 honor_labels: true
18 static_configs:
19 - targets:
20 {% for mgr in mgr_scrape_list %}
21 - '{{ mgr }}'
22 {% endfor %}
23
24 {% if nodes %}
25 - job_name: 'node'
26 static_configs:
27 {% for node in nodes %}
28 - targets: ['{{ node.url }}']
29 labels:
30 instance: '{{ node.hostname }}'
31 {% endfor %}
32 {% endif %}
33
34 {% if haproxy_targets %}
35 - job_name: 'haproxy'
36 static_configs:
37 {% for haproxy in haproxy_targets %}
38 - targets: [{{ haproxy.url }}]
39 labels:
40 instance: '{{ haproxy.service }}'
41 {% endfor %}
42 {% endif %}