promread

package
v0.0.0-...-c687bfd Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

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