Skip to content

Commit

Permalink
Remove retries for now until dynamic configuration is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Achooo committed May 26, 2023
1 parent bac9fb7 commit cc38b06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions agent/hcp/client/metrics_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// We have turned retry off by setting this to 0 until we can configure retries dynamically.
// To reduce load on the Telemetry Gateway for now.
defaultRetryMax = 0
)

// MetricsClient exports Consul metrics in OTLP format to the HCP Telemetry Gateway.
Expand Down

0 comments on commit cc38b06

Please sign in to comment.