prometheus/promql
Julien Pivotto ff0003e072
Make lookbackDelta a option of QueryEngine (#6746)
* Make lookbackDelta a option of QueryEngine

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* julius' suggestion

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* remove trivial getter

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* Assume lookback delta is always > 0

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* add debug log

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* don't expose loopback delta

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* Specify that lookack delta is also used in federation

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* Fix federation test

While we have added some logic to the promql engine to keep it backwards
compatible and have a 5 minute loopback by default, the web/ package is
likely to really be internal to Prometheus and we should not add the
same kind of heuritstics here.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* loopback delta: Fix debug log

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-10 00:58:23 +01:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
testdata PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
ast.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
bench_test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
engine.go Make lookbackDelta a option of QueryEngine (#6746) 2020-02-10 00:58:23 +01:00
engine_test.go Make lookbackDelta a option of QueryEngine (#6746) 2020-02-10 00:58:23 +01:00
functions.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
functions_test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
fuzz.go fix fuzz targets (#5851) 2019-08-12 20:47:57 +02:00
generated_parser.y PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
generated_parser.y.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
lex.go PromQL: Use PositionRange in parser errors (#6634) 2020-01-15 20:01:49 +00:00
lex_test.go Fix order of testutil.Equals (#6695) 2020-01-27 12:21:59 +00:00
parse.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
parse_test.go Fix order of testutil.Equals (#6695) 2020-01-27 12:21:59 +00:00
printer.go PromQL: Various small improvements in the parser (#6652) 2020-01-17 15:16:58 +00:00
printer_test.go fix subquery with offset conversion to string (#6373) 2019-11-26 06:45:51 +00:00
promql_test.go promql: Move tests to testutil (#6103) 2019-10-09 18:06:53 -06:00
quantile.go func name ref correct "qauntile" -> "quantile" (#5834) 2019-08-06 06:11:16 +01:00
query_logger.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
query_logger_test.go promql: make active query tracker context-aware (#6701) 2020-01-27 22:29:44 +00:00
test.go Remove MaxConcurrent from the PromQL engine opts (#6712) 2020-01-28 20:38:49 +00:00
test_test.go Fix some spelling issues (#5361) 2019-03-14 14:38:54 +00:00
value.go promql: fix typo in value.go (#6491) 2019-12-19 22:30:32 +00:00