]>
Commit | Line | Data |
---|---|---|
1 | # {{ cephadm_managed }} | |
2 | global: | |
3 | scrape_interval: 10s | |
4 | evaluation_interval: 10s | |
5 | rule_files: | |
6 | - /etc/prometheus/alerting/* | |
7 | ||
8 | {% if alertmanager_sd_url %} | |
9 | alerting: | |
10 | alertmanagers: | |
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 %} | |
26 | - scheme: http | |
27 | http_sd_configs: | |
28 | - url: {{ alertmanager_sd_url }} | |
29 | {% endif %} | |
30 | {% endif %} | |
31 | ||
32 | scrape_configs: | |
33 | - job_name: 'ceph' | |
34 | {% if secure_monitoring_stack %} | |
35 | scheme: https | |
36 | tls_config: | |
37 | ca_file: mgr_prometheus_cert.pem | |
38 | honor_labels: true | |
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 %} | |
51 | ||
52 | {% if node_exporter_sd_url %} | |
53 | - job_name: 'node' | |
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 %} | |
69 | {% endif %} | |
70 | ||
71 | {% if haproxy_sd_url %} | |
72 | - job_name: 'haproxy' | |
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 %} | |
88 | {% endif %} | |
89 | ||
90 | {% if ceph_exporter_sd_url %} | |
91 | - job_name: 'ceph-exporter' | |
92 | {% if secure_monitoring_stack %} | |
93 | honor_labels: true | |
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 %} | |
109 | {% endif %} | |
110 | ||
111 | {% if nvmeof_sd_url %} | |
112 | - job_name: 'nvmeof' | |
113 | {% if secure_monitoring_stack %} | |
114 | honor_labels: true | |
115 | scheme: https | |
116 | tls_config: | |
117 | ca_file: root_cert.pem | |
118 | http_sd_configs: | |
119 | - url: {{ nvmeof_sd_url }} | |
120 | basic_auth: | |
121 | username: {{ service_discovery_username }} | |
122 | password: {{ service_discovery_password }} | |
123 | tls_config: | |
124 | ca_file: root_cert.pem | |
125 | {% else %} | |
126 | http_sd_configs: | |
127 | - url: {{ nvmeof_sd_url }} | |
128 | {% endif %} | |
129 | {% endif %} |