mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Make remote read use the new selectParams for start/end
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com> Fixes: prometheus#4224
This commit is contained in:
parent
d0ce69920b
commit
d8389a7e95
|
@ -160,7 +160,11 @@ func (q *querier) Select(ctx context.Context, sortSeries bool, hints *storage.Se
|
|||
}
|
||||
|
||||
m, added := q.addExternalLabels(matchers)
|
||||
query, err := ToQuery(q.mint, q.maxt, m, hints)
|
||||
start, end := q.mint, q.maxt
|
||||
if hints != nil {
|
||||
start, end = hints.Start, hints.End
|
||||
}
|
||||
query, err := ToQuery(start, end, m, hints)
|
||||
if err != nil {
|
||||
return storage.ErrSeriesSet(fmt.Errorf("toQuery: %w", err))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue