Skip to content

Commit 37eb711

Browse files
author
tony-landreth
committed
Fixes interval on five second queries
1 parent 743484a commit 37eb711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/collector/postgres_metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
6464
config.Receivers[FiveSecondSqlQuery] = map[string]any{
6565
"driver": "postgres",
6666
"datasource": fmt.Sprintf(`host=localhost dbname=postgres port=5432 user=%s password=${env:PGPASSWORD} sslmode=disable`, pgmonitor.MonitoringUser),
67-
"collection_interval": "10s",
67+
"collection_interval": "5s",
6868
// Give Postgres time to finish setup.
6969
"initial_delay": "10s",
7070
"queries": slices.Clone(fiveSecondMetrics),

0 commit comments

Comments
 (0)