promread

package
v0.0.0-...-d18a39a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslatePromMatchers

func TranslatePromMatchers(ms ...*labels.Matcher) ([]*prompb.LabelMatcher, error)

TranslatePromMatchers returns proto matchers (prompb) from Prometheus matchers. NOTE: It allocates memory.

Types

type ReadSeries

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

ReadSeries implements storage.Series.

func (ReadSeries) Iterator

func (r ReadSeries) Iterator() chunkenc.Iterator

func (ReadSeries) Labels

func (r ReadSeries) Labels() labels.Labels

type Series

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

func NewSeries

func NewSeries(logger log.Logger, conf series.Config) (Series, error)

func (Series) Read

func (i Series) Read(ctx context.Context, params series.Params) (series.Set, error)

Jump to

Keyboard shortcuts

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