Skip to content

Commit d89e0a5

Browse files
more description for the look back delta
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
1 parent 8663d91 commit d89e0a5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cmd/thanos/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func registerQuery(m map[string]setupFunc, app *kingpin.Application) {
7070
maxConcurrentQueries := cmd.Flag("query.max-concurrent", "Maximum number of queries processed concurrently by query node.").
7171
Default("20").Int()
7272

73-
lookbackDelta := cmd.Flag("query.lookback-delta", "The maximum lookback duration for retrieving metrics during expression evaluations. Should be set to at least 2 times the slowest scrape interval to avoid gaps in the metrics.").Duration()
73+
lookbackDelta := cmd.Flag("query.lookback-delta", "The maximum lookback duration for retrieving metrics during expression evaluations. For example with a look back of 7min and a scrape interval of 10min, promql will fill in the gap only for 7min and will show the other 3min as a gap. Should be set to at least 2 times the slowest scrape interval.").Duration()
7474

7575
maxConcurrentSelects := cmd.Flag("query.max-concurrent-select", "Maximum number of select requests made concurrently per a query.").
7676
Default("4").Int()

docs/components/query.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,12 @@ Flags:
369369
concurrently by query node.
370370
--query.lookback-delta=QUERY.LOOKBACK-DELTA
371371
The maximum lookback duration for retrieving
372-
metrics during expression evaluations.
372+
metrics during expression evaluations. For
373+
example with a look back of 7min and a scrape
374+
interval of 10min, promql will fill in the gap
375+
only for 7min and will show the other 3min as a
376+
gap. Should be set to at least 2 times the
377+
slowest scrape interval.
373378
--query.max-concurrent-select=4
374379
Maximum number of select requests made
375380
concurrently per a query.

0 commit comments

Comments
 (0)