Skip to content

Commit e043b15

Browse files
author
tony-landreth
committed
Don't disable ssl_mode
1 parent 86ad298 commit e043b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/collector/postgres_metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
5656

5757
config.Receivers[FiveSecondSqlQuery] = map[string]any{
5858
"driver": "postgres",
59-
"datasource": fmt.Sprintf(`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD} sslmode=disable`, pgmonitor.MonitoringUser),
59+
"datasource": fmt.Sprintf(`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD}`, pgmonitor.MonitoringUser),
6060
"collection_interval": "5s",
6161
// Give Postgres time to finish setup.
6262
"initial_delay": "10s",
@@ -65,7 +65,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
6565

6666
config.Receivers[FiveMinuteSqlQuery] = map[string]any{
6767
"driver": "postgres",
68-
"datasource": fmt.Sprintf(`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD} sslmode=disable`, pgmonitor.MonitoringUser),
68+
"datasource": fmt.Sprintf(`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD}`, pgmonitor.MonitoringUser),
6969
"collection_interval": "300s",
7070
// Give Postgres time to finish setup.
7171
"initial_delay": "10s",

0 commit comments

Comments
 (0)