mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
app/vmselect/prometheus: do not adjust start
and end
args in /api/v1/query_range
if nocache=1
arg is set
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/171
This commit is contained in:
parent
82bfe818d0
commit
a7d5d611fe
1 changed files with 3 additions and 1 deletions
|
@ -634,7 +634,9 @@ func QueryRangeHandler(at *auth.Token, w http.ResponseWriter, r *http.Request) e
|
||||||
if err := promql.ValidateMaxPointsPerTimeseries(start, end, step); err != nil {
|
if err := promql.ValidateMaxPointsPerTimeseries(start, end, step); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if mayCache {
|
||||||
start, end = promql.AdjustStartEnd(start, end, step)
|
start, end = promql.AdjustStartEnd(start, end, step)
|
||||||
|
}
|
||||||
|
|
||||||
ec := promql.EvalConfig{
|
ec := promql.EvalConfig{
|
||||||
AuthToken: at,
|
AuthToken: at,
|
||||||
|
|
Loading…
Reference in a new issue