Skip to content

Commit 67ea824

Browse files
committed
add interval for prometh snapshot collection
Signed-off-by: Lenson <nosnelmil@gmail.com>
1 parent b11bfcc commit 67ea824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/multi_loader/metric/metric_manager.go

+1
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ func (m *MetricManager) fetchPrometheusSnapshot(maxAttempts int) (types.Promethe
352352
return snapshot, nil
353353
}
354354
log.Debug("Prometheus snapshot not ready. Retrying...")
355+
time.Sleep(100 * time.Millisecond)
355356
}
356357
return snapshot, fmt.Errorf("exhausted all attempts to retrieve Prometheus snapshot")
357358
}

0 commit comments

Comments
 (0)