]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2
Import ceph 15.2.8
[ceph.git] / ceph / src / pybind / mgr / cephadm / templates / services / prometheus / prometheus.yml.j2
CommitLineData
e306af50
TL
1# {{ cephadm_managed }}
2global:
3 scrape_interval: 10s
4 evaluation_interval: 10s
5rule_files:
6 - /etc/prometheus/alerting/*
7{% if alertmgr_targets %}
8alerting:
9 alertmanagers:
10 - scheme: http
11 path_prefix: /alertmanager
12 static_configs:
13 - targets: [{{ alertmgr_targets|join(', ') }}]
14{% endif %}
15scrape_configs:
16 - job_name: 'ceph'
f91f0fd5 17 honor_labels: true
e306af50
TL
18 static_configs:
19 - targets:
20{% for mgr in mgr_scrape_list %}
21 - '{{ mgr }}'
22{% endfor %}
e306af50
TL
23{% if nodes %}
24 - job_name: 'node'
25 static_configs:
26{% for node in nodes %}
27 - targets: ['{{ node.url }}']
28 labels:
29 instance: '{{ node.hostname }}'
30{% endfor %}
31{% endif %}