Skip to content

Commit ef70e1c

Browse files
Merge pull request #5120 from pacevedom/OCPBUGS-57777
OCPBUGS-57777: Change poll interval for first metrics send
2 parents 0d45f36 + 30486f5 commit ef70e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/telemetry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (t *TelemetryManager) Run(ctx context.Context, ready chan<- struct{}, stopp
104104

105105
// The first metrics collection may try too soon after kubelet has been started and no node/node labels are
106106
// present yet. Since we dont want to delay collection until the next interval (1h) we poll until success.
107-
if err := wait.PollUntilContextCancel(ctx, time.Second, true, func(context.Context) (bool, error) {
107+
if err := wait.PollUntilContextCancel(ctx, 30*time.Second, true, func(context.Context) (bool, error) {
108108
if err := collectAndSend(); err != nil {
109109
klog.Warningf("Telemetry collection failed: %v", err)
110110
return false, nil

0 commit comments

Comments
 (0)