metrics

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FH

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

func NewFH

func NewFH(o *prompb.Histogram) *FH

func (*FH) F

func (h *FH) F() float64

func (*FH) FH

func (h *FH) FH() *histogram.FloatHistogram

func (*FH) H

func (h *FH) H() *histogram.Histogram

func (*FH) T

func (h *FH) T() int64

func (*FH) Type

func (h *FH) Type() chunkenc.ValueType

type H

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

func NewH

func NewH(o *prompb.Histogram) *H

func (*H) F

func (h *H) F() float64

func (*H) FH

func (h *H) FH() *histogram.FloatHistogram

func (*H) H

func (h *H) H() *histogram.Histogram

func (*H) T

func (h *H) T() int64

func (*H) Type

func (h *H) Type() chunkenc.ValueType

type MapSet

type MapSet map[uint64]*S

type Querier

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

func (*Querier) Close

func (q *Querier) Close() error

func (*Querier) LabelNames

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

func (*Querier) LabelValues

func (s *Querier) LabelValues(ctx context.Context, name string, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)

func (*Querier) Select

func (s *Querier) Select(ctx context.Context, sortSeries bool, hints *storage.SelectHints, matchers ...*labels.Matcher) storage.SeriesSet

type Queryable

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

func (*Queryable) Querier

func (q *Queryable) Querier(mints, maxts int64) (storage.Querier, error)

type S

type S struct {
	Labels  labels.Labels
	Samples []chunks.Sample
}

type SeriesSet

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

func NewSeriesSet

func NewSeriesSet(m MapSet) *SeriesSet

func (*SeriesSet) At

func (s *SeriesSet) At() storage.Series

func (*SeriesSet) Err

func (s *SeriesSet) Err() error

func (*SeriesSet) Next

func (s *SeriesSet) Next() bool

func (*SeriesSet) Warnings

func (s *SeriesSet) Warnings() annotations.Annotations

type Store

type Store struct {
	*dsl.Store[*v1.Sample]
	// contains filtered or unexported fields
}

func New

func New(path string) (*Store, error)

func (*Store) ExemplarQuerier

func (s *Store) ExemplarQuerier(ctx context.Context) (storage.ExemplarQuerier, error)

func (*Store) Path

func (s *Store) Path() string

func (*Store) Queryable

func (s *Store) Queryable() *Queryable

func (*Store) Save

func (s *Store) Save(pm pmetric.Metrics) error

func (*Store) Select

func (s *Store) Select(start, end int64, matchers ...[]*labels.Matcher) ([]exemplar.QueryResult, error)

type V

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

func (*V) F

func (h *V) F() float64

func (*V) FH

func (h *V) FH() *histogram.FloatHistogram

func (*V) H

func (h *V) H() *histogram.Histogram

func (*V) T

func (h *V) T() int64

func (*V) Type

func (h *V) Type() chunkenc.ValueType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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