-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path20-grafana.yaml
80 lines (75 loc) · 3.2 KB
/
20-grafana.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
bases:
- ../environments.yaml
---
{{ readFile "../etc/helmfile-templates.yaml" }}
releases:
- name: timescaledb
chart: radar/postgresql
version: {{ .Values.timescaledb._chart_version }}
installed: {{ .Values.timescaledb._install }}
timeout: {{ add .Values.base_timeout .Values.timescaledb._extra_timeout }}
<<: *logFailedRelease
values:
- "../etc/timescaledb/values.yaml"
- {{ .Values.timescaledb | toYaml | indent 8 | trim }}
set:
{{- if eq .Values.timescaledb_username "postgres" }}
- name: global.postgresql.auth.postgresPassword
value: {{ .Values.timescaledb_password }}
{{- else }}
- name: global.postgresql.auth.username
value: {{ .Values.timescaledb_username }}
- name: global.postgresql.auth.password
value: {{ .Values.timescaledb_password }}
{{- end }}
- name: auth.database
value: {{ .Values.timescaledb_db_name }}
- name: radar-grafana
chart: radar/grafana
version: {{ .Values.radar_grafana._chart_version }}
installed: {{ .Values.radar_grafana._install }}
timeout: {{ add .Values.base_timeout .Values.radar_grafana._extra_timeout }}
<<: *logFailedRelease
values:
- "../etc/radar-grafana/values.yaml"
- {{ .Values.radar_grafana | toYaml | indent 8 | trim }}
set:
- name: adminPassword
value: {{ .Values.grafana_password }}
- name: env.POSTGRES_DB
value: {{ .Values.timescaledb_db_name | quote }}
- name: envRenderSecret.POSTGRES_PASSWORD
value: {{ .Values.timescaledb_password }}
- name: ingress.hosts
values: ["dashboard.{{ .Values.server_name }}"]
- name: "grafana\\.ini.server.root_url"
value: "https://dashboard.{{ .Values.server_name }}/"
- name: ingress.tls[0].secretName
value: radar-base-tls-dashboard
- name: ingress.tls[0].hosts
values: ["dashboard.{{ .Values.server_name }}"]
- name: "grafana\\.ini.metrics.basic_auth_username"
value: {{ .Values.grafana_metrics_username }}
- name: "grafana\\.ini.metrics.basic_auth_password"
value: {{ .Values.grafana_metrics_password }}
- name: "grafana\\.ini.auth\\.generic_oauth.auth_url"
value: "https://{{ .Values.server_name }}/managementportal/oauth/authorize"
- name: "grafana\\.ini.auth\\.generic_oauth.token_url"
value: "https://{{ .Values.server_name }}/managementportal/oauth/token"
- name: radar-jdbc-connector
chart: radar/radar-jdbc-connector
version: {{ .Values.radar_jdbc_connector._chart_version }}
installed: {{ .Values.radar_jdbc_connector._install }}
timeout: {{ add .Values.base_timeout .Values.radar_jdbc_connector._extra_timeout }}
<<: *logFailedRelease
values:
- {{ .Values.radar_jdbc_connector | toYaml | indent 8 | trim }}
set:
- name: kafka_num_brokers
value: {{ .Values.kafka_num_brokers }}
- name: jdbc.user
value: {{ .Values.timescaledb_username }}
- name: jdbc.password
value: {{ .Values.timescaledb_password }}
- name: jdbc.url
value: {{ dig "jdbc" "url" (printf "jdbc:postgresql://timescaledb-postgresql-hl:5432/%s" .Values.timescaledb_db_name) .Values.radar_jdbc_connector }}