MCPcopy
hub / github.com/prometheus/prometheus / LabelValues

Method LabelValues

tsdb/querier.go:81–84  ·  view source on GitHub ↗
(ctx context.Context, name string, hints *storage.LabelHints, matchers ...*labels.Matcher)

Source from the content-addressed store, hash-verified

79}
80
81func (q *blockBaseQuerier) LabelValues(ctx context.Context, name string, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error) {
82 res, err := q.index.SortedLabelValues(ctx, name, hints, matchers...)
83 return res, nil, err
84}
85
86func (q *blockBaseQuerier) LabelNames(ctx context.Context, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error) {
87 res, err := q.index.LabelNames(ctx, matchers...)

Callers

nothing calls this directly

Calls 1

SortedLabelValuesMethod · 0.65

Tested by

no test coverage detected