Fix two remote_timeout configs in ingester_client block (#5418)

* Fix two remote_timeout configs in ingester_client block

* Add default value of remote_timeout in document
pull/5456/head
RangerCD 4 years ago committed by GitHub
parent cbd3b007cc
commit daacfd0b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/sources/configuration/_index.md
  2. 2
      pkg/distributor/clientpool/ingester_client_pool.go

@ -1010,10 +1010,11 @@ pool_config:
# How quickly a dead client will be removed after it has been detected
# to disappear. Set this to a value to allow time for a secondary
# health check to recover the missing client.
[remotetimeout: <duration>]
# CLI flag: -ingester.client.healthcheck-timeout
[remote_timeout: <duration> | default = 1s]
# The remote request timeout on the client side.
# CLI flag: -ingester.client.healthcheck-timeout
# CLI flag: -ingester.client.timeout
[remote_timeout: <duration> | default = 5s]
# Configures how the gRPC connection to ingesters work as a client

@ -21,7 +21,7 @@ var clients = promauto.NewGauge(prometheus.GaugeOpts{
type PoolConfig struct {
ClientCleanupPeriod time.Duration `yaml:"client_cleanup_period"`
HealthCheckIngesters bool `yaml:"health_check_ingesters"`
RemoteTimeout time.Duration `yaml:"-"`
RemoteTimeout time.Duration `yaml:"remote_timeout"`
}
// RegisterFlags adds the flags required to config this to the given FlagSet.

Loading…
Cancel
Save