Skip to content

Commit c57314e

Browse files
committed
Add postgres support for grafana
1 parent a24e7d7 commit c57314e

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

charts/client/Chart.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.7
18+
version: 1.1.8
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
@@ -31,7 +31,12 @@ dependencies:
3131
condition: clickhouse.enabled
3232
version: 1.0.2
3333
repository: https://intelops.github.io/kubviz/
34+
- name: postgresql
35+
condition: postgresql.enabled
36+
version: 1.0.0
37+
repository: https://kube-tarian.github.io/helmrepo-supporting-tools/
3438
- name: grafana
3539
condition: grafana.enabled
3640
version: 1.0.3
3741
repository: https://kube-tarian.github.io/helmrepo-supporting-tools/
42+

charts/client/values.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,54 @@ clickhouse:
9898
clickhouse:
9999
replicas: "1"
100100

101+
postgresql:
102+
enabled: false
103+
auth:
104+
## @param auth.enablePostgresUser Assign a password to the "postgres" admin user. Otherwise, remote access will be blocked for this user
105+
##
106+
enablePostgresUser: true
107+
## @param auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` is provided
108+
##
109+
postgresPassword: ""
110+
## @param auth.username Name for a custom user to create
111+
##
112+
username: ""
113+
## @param auth.password Password for the custom user to create. Ignored if `auth.existingSecret` is provided
114+
##
115+
password: ""
116+
## @param auth.database Name for a custom database to create
117+
##
118+
database: ""
119+
## @param auth.existingSecret Name of existing secret to use for PostgreSQL credentials. `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret. The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case.
120+
##
121+
existingSecret: ""
122+
metrics:
123+
enabled: false
124+
101125
grafana:
102126
enabled: false
103127
plugins:
104128
- vertamedia-clickhouse-datasource
105129
- grafana-clickhouse-datasource
106130
- volkovlabs-echarts-panel
131+
sidecar:
132+
dashboards:
133+
provider:
134+
allowUiUpdates: true
135+
# grafana.ini:
136+
# database:
137+
# enabled: true
138+
# type: postgres
139+
# host: kubviz-client-postgresql:5432
140+
# name: postgres
141+
# ssl_mode: disable
142+
# user: postgres
143+
# password: $__file{/etc/secrets/postgresql/postgres-password}
144+
# extraSecretMounts:
145+
# - name: my-postgresql-mount
146+
# mountPath: /etc/secrets/postgresql
147+
# secretName: kubviz-client-postgresql
148+
# readOnly: true
107149

108150
dashboards:
109151
enabled: true

0 commit comments

Comments
 (0)