File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
coder-observability/templates Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ Create the name of the service account to use
64
64
{ {/* Postgres connector string */} }
65
65
{ {- define " postgres-connector-string" -} }
66
66
{ {- if .Values.global.postgres.password -} }
67
- postgresql://{ { .Values.global.postgres.username } }:{ { urlquery .Values.global.postgres.password } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/postgres?sslmode={ { .Values.global.postgres.sslmode } }
67
+ postgresql://{ { .Values.global.postgres.username } }:{ { urlquery .Values.global.postgres.password } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/{ { .Values.global. postgres.database } } ?sslmode={ { .Values.global.postgres.sslmode } }
68
68
{ {- else if .Values.global.postgres.mountSecret -} }
69
- postgresql://{ { .Values.global.postgres.username } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/postgres?sslmode={ { .Values.global.postgres.sslmode } }
69
+ postgresql://{ { .Values.global.postgres.username } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/{ { .Values.global. postgres.database } } ?sslmode={ { .Values.global.postgres.sslmode } }
70
70
{ {- else -} }
71
71
{ { fail " either postgres.password or postgres.mountSecret must be defined" } }
72
72
{ {- end -} }
Original file line number Diff line number Diff line change @@ -994,7 +994,7 @@ data:
994
994
global:
995
995
target:
996
996
name: postgres
997
- data_source_name: 'postgresql://coder@localhost:5432/postgres ?sslmode=disable'
997
+ data_source_name: 'postgresql://coder@localhost:5432/coder ?sslmode=disable'
998
998
collectors:
999
999
- notify
1000
1000
collectors:
@@ -12215,7 +12215,7 @@ spec:
12215
12215
name: exporter
12216
12216
env:
12217
12217
- name: DATA_SOURCE_NAME
12218
- value: 'postgresql://coder@localhost:5432/postgres ?sslmode=disable'
12218
+ value: 'postgresql://coder@localhost:5432/coder ?sslmode=disable'
12219
12219
envFrom:
12220
12220
- secretRef:
12221
12221
name: secret-postgres
@@ -12270,7 +12270,7 @@ spec:
12270
12270
metadata:
12271
12271
annotations:
12272
12272
prometheus.io/scrape: 'true'
12273
- checksum/config: e12c0044ef2cab3438ffdc8f5e16c24c5acf5ee36dcc8bee77294f27e53ce4a2
12273
+ checksum/config: 71bb9e7579b6e138ae28c623aa29d72025be00387da6c1b8dd5aa168c96ca1e0
12274
12274
labels:
12275
12275
app: sql-exporter
12276
12276
app.kubernetes.io/name: "database-stats"
You can’t perform that action at this time.
0 commit comments