]>
Commit | Line | Data |
---|---|---|
e306af50 TL |
1 | # {{ cephadm_managed }} |
2 | global: | |
3 | scrape_interval: 10s | |
4 | evaluation_interval: 10s | |
5 | rule_files: | |
6 | - /etc/prometheus/alerting/* | |
1e59de90 TL |
7 | |
8 | {% if alertmanager_sd_url %} | |
e306af50 TL |
9 | alerting: |
10 | alertmanagers: | |
1e59de90 TL |
11 | {% if secure_monitoring_stack %} |
12 | - scheme: https | |
13 | basic_auth: | |
14 | username: {{ alertmanager_web_user }} | |
15 | password: {{ alertmanager_web_password }} | |
16 | tls_config: | |
17 | ca_file: root_cert.pem | |
18 | http_sd_configs: | |
19 | - url: {{ alertmanager_sd_url }} | |
20 | basic_auth: | |
21 | username: {{ service_discovery_username }} | |
22 | password: {{ service_discovery_password }} | |
23 | tls_config: | |
24 | ca_file: root_cert.pem | |
25 | {% else %} | |
e306af50 | 26 | - scheme: http |
1e59de90 TL |
27 | http_sd_configs: |
28 | - url: {{ alertmanager_sd_url }} | |
29 | {% endif %} | |
e306af50 | 30 | {% endif %} |
1e59de90 | 31 | |
e306af50 TL |
32 | scrape_configs: |
33 | - job_name: 'ceph' | |
1e59de90 TL |
34 | {% if secure_monitoring_stack %} |
35 | scheme: https | |
36 | tls_config: | |
37 | ca_file: mgr_prometheus_cert.pem | |
f91f0fd5 | 38 | honor_labels: true |
1e59de90 TL |
39 | http_sd_configs: |
40 | - url: {{ mgr_prometheus_sd_url }} | |
41 | basic_auth: | |
42 | username: {{ service_discovery_username }} | |
43 | password: {{ service_discovery_password }} | |
44 | tls_config: | |
45 | ca_file: root_cert.pem | |
46 | {% else %} | |
47 | honor_labels: true | |
48 | http_sd_configs: | |
49 | - url: {{ mgr_prometheus_sd_url }} | |
50 | {% endif %} | |
f67539c2 | 51 | |
1e59de90 | 52 | {% if node_exporter_sd_url %} |
e306af50 | 53 | - job_name: 'node' |
1e59de90 TL |
54 | {% if secure_monitoring_stack %} |
55 | scheme: https | |
56 | tls_config: | |
57 | ca_file: root_cert.pem | |
58 | http_sd_configs: | |
59 | - url: {{ node_exporter_sd_url }} | |
60 | basic_auth: | |
61 | username: {{ service_discovery_username }} | |
62 | password: {{ service_discovery_password }} | |
63 | tls_config: | |
64 | ca_file: root_cert.pem | |
65 | {% else %} | |
66 | http_sd_configs: | |
67 | - url: {{ node_exporter_sd_url }} | |
68 | {% endif %} | |
e306af50 | 69 | {% endif %} |
f67539c2 | 70 | |
1e59de90 | 71 | {% if haproxy_sd_url %} |
f67539c2 | 72 | - job_name: 'haproxy' |
1e59de90 TL |
73 | {% if secure_monitoring_stack %} |
74 | scheme: https | |
75 | tls_config: | |
76 | ca_file: root_cert.pem | |
77 | http_sd_configs: | |
78 | - url: {{ haproxy_sd_url }} | |
79 | basic_auth: | |
80 | username: {{ service_discovery_username }} | |
81 | password: {{ service_discovery_password }} | |
82 | tls_config: | |
83 | ca_file: root_cert.pem | |
84 | {% else %} | |
85 | http_sd_configs: | |
86 | - url: {{ haproxy_sd_url }} | |
87 | {% endif %} | |
f67539c2 | 88 | {% endif %} |
39ae355f | 89 | |
1e59de90 | 90 | {% if ceph_exporter_sd_url %} |
39ae355f | 91 | - job_name: 'ceph-exporter' |
1e59de90 | 92 | {% if secure_monitoring_stack %} |
39ae355f | 93 | honor_labels: true |
1e59de90 TL |
94 | scheme: https |
95 | tls_config: | |
96 | ca_file: root_cert.pem | |
97 | http_sd_configs: | |
98 | - url: {{ ceph_exporter_sd_url }} | |
99 | basic_auth: | |
100 | username: {{ service_discovery_username }} | |
101 | password: {{ service_discovery_password }} | |
102 | tls_config: | |
103 | ca_file: root_cert.pem | |
104 | {% else %} | |
105 | honor_labels: true | |
106 | http_sd_configs: | |
107 | - url: {{ ceph_exporter_sd_url }} | |
108 | {% endif %} | |
39ae355f | 109 | {% endif %} |