diff --git a/agent/hcp/client/metrics_client.go b/agent/hcp/client/metrics_client.go index a45d6343fc4..0bab61a510c 100644 --- a/agent/hcp/client/metrics_client.go +++ b/agent/hcp/client/metrics_client.go @@ -24,10 +24,12 @@ const ( defaultStreamTimeout = 15 * time.Second // Retry config - // TODO: Evenutally, we'd like to configure these values dynamically. + // TODO: Eventually, we'd like to configure these values dynamically. defaultRetryWaitMin = 1 * time.Second defaultRetryWaitMax = 15 * time.Second - defaultRetryMax = 4 + // defaultRetryMax is set to 0 to turn off retry functionality, until dynamic configuration is possible. + // This is to circumvent any spikes in load that may cause or exacerbate server-side issues for now. + defaultRetryMax = 0 ) // MetricsClient exports Consul metrics in OTLP format to the HCP Telemetry Gateway.