MCPcopy
hub / github.com/prometheus/prometheus / SearchLabelValues

Method SearchLabelValues

web/api/v1/search_test.go:1004–1011  ·  view source on GitHub ↗
(context.Context, string, *storage.SearchHints, ...*labels.Matcher)

Source from the content-addressed store, hash-verified

1002}
1003
1004func (q *sequentialSearchQuerier) SearchLabelValues(context.Context, string, *storage.SearchHints, ...*labels.Matcher) storage.SearchResultSet {
1005 r := q.nextResp(q.labelValueCount)
1006 q.labelValueCount++
1007 if r.err != nil {
1008 return storage.ErrSearchResultSet(r.err)
1009 }
1010 return storage.NewSearchResultSetFromSlice(r.results, nil)
1011}
1012
1013func TestSearchEndpointsPartialMatcherSetError(t *testing.T) {
1014 // Two match[] sets: the first yields three values, the second errors.

Callers

nothing calls this directly

Calls 3

nextRespMethod · 0.95
ErrSearchResultSetFunction · 0.92

Tested by

no test coverage detected