blob: 46aea864f536d69e41709f05b9c877cf275faef7 (
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
|
# {{ cephadm_managed }}
apiVersion: 1
deleteDatasources:
{% for host in hosts %}
- name: 'Dashboard{{ loop.index }}'
orgId: 1
{% endfor %}
datasources:
{% for host in hosts %}
- name: 'Dashboard{{ loop.index }}'
type: 'prometheus'
access: 'proxy'
orgId: 1
url: '{{ host }}'
basicAuth: {{ 'true' if security_enabled else 'false' }}
isDefault: {{ 'true' if loop.first else 'false' }}
editable: false
{% if security_enabled %}
basicAuthUser: {{ prometheus_user }}
jsonData:
graphiteVersion: "1.1"
tlsAuth: false
tlsAuthWithCACert: true
tlsSkipVerify: false
secureJsonData:
basicAuthPassword: {{ prometheus_password }}
tlsCACert: "{{ cephadm_root_ca }}"
{% endif %}
{% endfor %}
- name: 'Loki'
type: 'loki'
access: 'proxy'
url: '{{ loki_host }}'
basicAuth: false
isDefault: false
editable: false
|