Skip to content

Commit

Permalink
add instant-query flag example case documentation.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Reddehase <tim.reddehase@xing.com>
  • Loading branch information
0robustus1 committed Aug 21, 2019
1 parent aa1d23f commit 4765b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/thanos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("<name>=\"<value>\"").Strings()
Expand Down
5 changes: 4 additions & 1 deletion docs/components/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<name>="<value>" ...
Query selector labels that will be exposed in
info endpoint (repeated).
Expand Down

0 comments on commit 4765b2a

Please sign in to comment.