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