prom

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColumnLabels rb.Type[labels.Labels] = &typeColumnLabels{}

Functions

func NewHashSelector

func NewHashSelector(values iter.Seq[string]) *hashSelector

TODO: test in prod if hash32 is sufficient. Metric required

func Run

func Run(ctx context.Context, config *config.Config) error

Types

type Querier

type Querier struct {
	// contains filtered or unexported fields
}

Querier provides reading access to time series data.

func (*Querier) Close

func (q *Querier) Close() error

Close releases the resources of the Querier.

func (*Querier) LabelNames

func (q *Querier) LabelNames(ctx context.Context, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)

LabelNames returns all the unique label names present in the block in sorted order.

func (*Querier) LabelValues

func (q *Querier) LabelValues(ctx context.Context, label string, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)

LabelValues returns all potential values for a label name.

func (*Querier) Select

func (q *Querier) Select(ctx context.Context, sortSeries bool, selectHints *storage.SelectHints, labelsMatcher ...*labels.Matcher) storage.SeriesSet

Select returns a set of series that matches the given label matchers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL