Skip to content

Commit eb05b58

Browse files
committed
OTel metrics: bump initial_delay time on sqlquery receivers to avoid ccp_monitoring authentication errors.
1 parent a744e1f commit eb05b58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/collector/postgres_metrics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
155155
MonitoringUser),
156156
"collection_interval": "5s",
157157
// Give Postgres time to finish setup.
158-
"initial_delay": "10s",
158+
"initial_delay": "15s",
159159
"queries": slices.Clone(fiveSecondMetricsClone),
160160
}
161161

@@ -166,7 +166,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
166166
MonitoringUser),
167167
"collection_interval": "300s",
168168
// Give Postgres time to finish setup.
169-
"initial_delay": "10s",
169+
"initial_delay": "15s",
170170
"queries": slices.Clone(fiveMinuteMetricsClone),
171171
}
172172

@@ -196,7 +196,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
196196
MonitoringUser),
197197
"collection_interval": querySet.CollectionInterval,
198198
// Give Postgres time to finish setup.
199-
"initial_delay": "10s",
199+
"initial_delay": "15s",
200200
"queries": "${file:/etc/otel-collector/" +
201201
querySet.Name + "/" + querySet.Queries.Key + "}",
202202
}

0 commit comments

Comments
 (0)