Skip to content

Commit 447360b

Browse files
committed
missed ref to pgmonitor when resolving
1 parent 4e5b11e commit 447360b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/collector/postgres_metrics.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"slices"
1313
"strconv"
1414

15-
"github.com/crunchydata/postgres-operator/internal/feature"
1615
"github.com/crunchydata/postgres-operator/internal/logging"
1716
"github.com/crunchydata/postgres-operator/pkg/apis/postgres-operator.crunchydata.com/v1beta1"
1817
)
@@ -171,7 +170,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
171170
"driver": "postgres",
172171
"datasource": fmt.Sprintf(
173172
`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD}`,
174-
pgmonitor.MonitoringUser),
173+
MonitoringUser),
175174
"collection_interval": querySet.CollectionInterval,
176175
// Give Postgres time to finish setup.
177176
"initial_delay": "10s",

0 commit comments

Comments
 (0)