mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 06:29:42 -08:00
storage: require selectors to always return matching results
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
This commit is contained in:
parent
d98c37478b
commit
563bfdd384
|
@ -17,7 +17,8 @@ Request are made to the following endpoint.
|
||||||
|
|
||||||
### Samples
|
### Samples
|
||||||
|
|
||||||
This returns a message that includes a list of raw samples.
|
This returns a message that includes a list of raw samples matching the
|
||||||
|
requested query.
|
||||||
|
|
||||||
### Streamed Chunks
|
### Streamed Chunks
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,8 @@ type Querier interface {
|
||||||
LabelQuerier
|
LabelQuerier
|
||||||
|
|
||||||
// Select returns a set of series that matches the given label matchers.
|
// Select returns a set of series that matches the given label matchers.
|
||||||
|
// Results are not checked whether they match. Results that do not match
|
||||||
|
// may cause undefined behavior.
|
||||||
// Caller can specify if it requires returned series to be sorted. Prefer not requiring sorting for better performance.
|
// Caller can specify if it requires returned series to be sorted. Prefer not requiring sorting for better performance.
|
||||||
// It allows passing hints that can help in optimising select, but it's up to implementation how this is used if used at all.
|
// It allows passing hints that can help in optimising select, but it's up to implementation how this is used if used at all.
|
||||||
Select(ctx context.Context, sortSeries bool, hints *SelectHints, matchers ...*labels.Matcher) SeriesSet
|
Select(ctx context.Context, sortSeries bool, hints *SelectHints, matchers ...*labels.Matcher) SeriesSet
|
||||||
|
@ -152,6 +154,8 @@ type ChunkQuerier interface {
|
||||||
LabelQuerier
|
LabelQuerier
|
||||||
|
|
||||||
// Select returns a set of series that matches the given label matchers.
|
// Select returns a set of series that matches the given label matchers.
|
||||||
|
// Results are not checked whether they match. Results that do not match
|
||||||
|
// may cause undefined behavior.
|
||||||
// Caller can specify if it requires returned series to be sorted. Prefer not requiring sorting for better performance.
|
// Caller can specify if it requires returned series to be sorted. Prefer not requiring sorting for better performance.
|
||||||
// It allows passing hints that can help in optimising select, but it's up to implementation how this is used if used at all.
|
// It allows passing hints that can help in optimising select, but it's up to implementation how this is used if used at all.
|
||||||
Select(ctx context.Context, sortSeries bool, hints *SelectHints, matchers ...*labels.Matcher) ChunkSeriesSet
|
Select(ctx context.Context, sortSeries bool, hints *SelectHints, matchers ...*labels.Matcher) ChunkSeriesSet
|
||||||
|
|
Loading…
Reference in a new issue