Skip to content

Commit 8d79acc

Browse files
authored
Changing client healthcheck config cli argument (#6414)
Signed-off-by: alanprot <[email protected]>
1 parent 68012ec commit 8d79acc

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: docs/blocks-storage/querier.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,17 @@ querier:
209209
healthcheck_config:
210210
# The number of consecutive failed health checks required before
211211
# considering a target unhealthy. 0 means disabled.
212-
# CLI flag: -querier.store-gateway-client.unhealthy-threshold
212+
# CLI flag: -querier.store-gateway-client.healthcheck.unhealthy-threshold
213213
[unhealthy_threshold: <int> | default = 0]
214214

215215
# The approximate amount of time between health checks of an individual
216216
# target.
217-
# CLI flag: -querier.store-gateway-client.interval
217+
# CLI flag: -querier.store-gateway-client.healthcheck.interval
218218
[interval: <duration> | default = 5s]
219219

220220
# The amount of time during which no response from a target means a failed
221221
# health check.
222-
# CLI flag: -querier.store-gateway-client.timeout
222+
# CLI flag: -querier.store-gateway-client.healthcheck.timeout
223223
[timeout: <duration> | default = 1s]
224224

225225
# If enabled, store gateway query stats will be logged using `info` log level.

Diff for: docs/configuration/config-file-reference.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3256,17 +3256,17 @@ grpc_client_config:
32563256
healthcheck_config:
32573257
# The number of consecutive failed health checks required before considering
32583258
# a target unhealthy. 0 means disabled.
3259-
# CLI flag: -ingester.client.unhealthy-threshold
3259+
# CLI flag: -ingester.client.healthcheck.unhealthy-threshold
32603260
[unhealthy_threshold: <int> | default = 0]
32613261
32623262
# The approximate amount of time between health checks of an individual
32633263
# target.
3264-
# CLI flag: -ingester.client.interval
3264+
# CLI flag: -ingester.client.healthcheck.interval
32653265
[interval: <duration> | default = 5s]
32663266
32673267
# The amount of time during which no response from a target means a failed
32683268
# health check.
3269-
# CLI flag: -ingester.client.timeout
3269+
# CLI flag: -ingester.client.healthcheck.timeout
32703270
[timeout: <duration> | default = 1s]
32713271
32723272
# Max inflight push requests that this ingester client can handle. This limit is
@@ -4004,17 +4004,17 @@ store_gateway_client:
40044004
healthcheck_config:
40054005
# The number of consecutive failed health checks required before considering
40064006
# a target unhealthy. 0 means disabled.
4007-
# CLI flag: -querier.store-gateway-client.unhealthy-threshold
4007+
# CLI flag: -querier.store-gateway-client.healthcheck.unhealthy-threshold
40084008
[unhealthy_threshold: <int> | default = 0]
40094009
40104010
# The approximate amount of time between health checks of an individual
40114011
# target.
4012-
# CLI flag: -querier.store-gateway-client.interval
4012+
# CLI flag: -querier.store-gateway-client.healthcheck.interval
40134013
[interval: <duration> | default = 5s]
40144014
40154015
# The amount of time during which no response from a target means a failed
40164016
# health check.
4017-
# CLI flag: -querier.store-gateway-client.timeout
4017+
# CLI flag: -querier.store-gateway-client.healthcheck.timeout
40184018
[timeout: <duration> | default = 1s]
40194019
40204020
# If enabled, store gateway query stats will be logged using `info` log level.

Diff for: pkg/util/grpcclient/health_check.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ type HealthCheckConfig struct {
3434

3535
// RegisterFlagsWithPrefix for Config.
3636
func (cfg *HealthCheckConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
37-
f.Int64Var(&cfg.UnhealthyThreshold, prefix+".unhealthy-threshold", 0, "The number of consecutive failed health checks required before considering a target unhealthy. 0 means disabled.")
38-
f.DurationVar(&cfg.Timeout, prefix+".timeout", 1*time.Second, "The amount of time during which no response from a target means a failed health check.")
39-
f.DurationVar(&cfg.Interval, prefix+".interval", 5*time.Second, "The approximate amount of time between health checks of an individual target.")
37+
f.Int64Var(&cfg.UnhealthyThreshold, prefix+".healthcheck.unhealthy-threshold", 0, "The number of consecutive failed health checks required before considering a target unhealthy. 0 means disabled.")
38+
f.DurationVar(&cfg.Timeout, prefix+".healthcheck.timeout", 1*time.Second, "The amount of time during which no response from a target means a failed health check.")
39+
f.DurationVar(&cfg.Interval, prefix+".healthcheck.interval", 5*time.Second, "The approximate amount of time between health checks of an individual target.")
4040
}
4141

4242
type healthCheckClient struct {

0 commit comments

Comments
 (0)