Skip to content

Commit

Permalink
new flag
Browse files Browse the repository at this point in the history
Signed-off-by: Vanshika <[email protected]>
  • Loading branch information
Vanshikav123 committed Jan 12, 2024
1 parent 7794d78 commit 7a0d893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/thanos/query_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func registerQueryFrontend(app *extkingpin.App) {
cmd.Flag("web.disable-cors", "Whether to disable CORS headers to be set by Thanos. By default Thanos sets CORS headers to be allowed by all.").
Default("false").BoolVar(&cfg.webDisableCORS)

cmd.Flag("query-range.timeout", "Global timeout for range queries in the query frontend. Queries exceeding this duration will be aborted.").
Default("5m").DurationVar(&cfg.QueryRangeConfig.Timeout)

// Query range tripperware flags.
cmd.Flag("query-range.align-range-with-step", "Mutate incoming queries to align their start and end with their step for better cache-ability. Note: Grafana dashboards do that by default.").
Default("true").BoolVar(&cfg.QueryRangeConfig.AlignRangeWithStep)
Expand Down
1 change: 1 addition & 0 deletions pkg/queryfrontend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ type QueryRangeConfig struct {
HorizontalShards int64
MaxRetries int
Limits *cortexvalidation.Limits
Timeout time.Duration `yaml:"timeout"`
}

// LabelsConfig holds the config for labels tripperware.
Expand Down

0 comments on commit 7a0d893

Please sign in to comment.