prometheus/web
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
..
api rules: Cleanup unused function alert.Duration (#6734) 2020-02-01 07:31:37 +00:00
ui Formatting short tables for readability (#6762) 2020-02-10 00:11:57 +01:00
federate.go Make lookbackDelta a option of QueryEngine (#6746) 2020-02-10 00:58:23 +01:00
federate_test.go Make lookbackDelta a option of QueryEngine (#6746) 2020-02-10 00:58:23 +01:00
web.go Make lookbackDelta a option of QueryEngine (#6746) 2020-02-10 00:58:23 +01:00
web_test.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30