limitqueryable

package
v0.0.0-...-be370ba Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTooManySeries = errors.New("too many series evaluated by this PromQL")
	ErrTooManyPoints = errors.New("too many points evaluated by this PromQL")
)
View Source
var ErrAssertion = errors.New("assertion error")

Functions

This section is empty.

Types

type Options

type Options struct {
	// Enforce that queried time is between those values.
	MinTime            time.Time
	MaxTime            time.Time
	ForcedMatchers     []*labels.Matcher
	MaxEvaluatedSeries uint32
	MaxEvaluatedPoints uint64
}

type Queryable

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

func NewLimiterQueryable

func NewLimiterQueryable(q types.QueryableWithOptions, opts Options) *Queryable

func (*Queryable) ChunkQuerier

func (q *Queryable) ChunkQuerier(mint, maxt int64) (storage.ChunkQuerier, error)

func (*Queryable) ChunkQuerierWithOptions

func (q *Queryable) ChunkQuerierWithOptions(opts types.QuerierOptions, mint, maxt int64) (storage.ChunkQuerier, error)

func (*Queryable) Querier

func (q *Queryable) Querier(mint, maxt int64) (storage.Querier, error)

func (*Queryable) QuerierWithOptions

func (q *Queryable) QuerierWithOptions(opts types.QuerierOptions, mint, maxt int64) (storage.Querier, error)

Jump to

Keyboard shortcuts

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