diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index 76ac7603f67..9e4cd071afd 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -67,7 +67,7 @@ func registerQuery(m map[string]setupFunc, app *kingpin.Application, name string replicaLabel := cmd.Flag("query.replica-label", "Label to treat as a replica indicator along which data is deduplicated. Still you will be able to query without deduplication using 'dedup=false' parameter."). String() - defaultMaxSourceResolution := modelDuration(cmd.Flag("query.instant.default.max_source_resolution", "default value for max_source_resolution for instant queries. If not set, defaults to 0s only taking raw resolution into account.").Default("0s")) + defaultMaxSourceResolution := modelDuration(cmd.Flag("query.instant.default.max_source_resolution", "default value for max_source_resolution for instant queries. If not set, defaults to 0s only taking raw resolution into account. 1h can be a good value if you use instant queries over time ranges that incorporate times outside of your raw-retention.").Default("0s")) selectorLabels := cmd.Flag("selector-label", "Query selector labels that will be exposed in info endpoint (repeated)."). PlaceHolder("=\"\"").Strings() diff --git a/docs/components/query.md b/docs/components/query.md index df9a226a886..011d1bbde02 100644 --- a/docs/components/query.md +++ b/docs/components/query.md @@ -238,7 +238,10 @@ Flags: --query.instant.default.max_source_resolution=0s default value for max_source_resolution for instant queries. If not set, defaults to 0s - only taking raw resolution into account. + only taking raw resolution into account. 1h can + be a good value if you use instant queries over + time ranges that incorporate times outside of + your raw-retention. --selector-label=="" ... Query selector labels that will be exposed in info endpoint (repeated).