compat

package
v0.0.0-...-72cbd83 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ForceFallbackHeaderName = "X-Mimir-Force-Prometheus-Engine"

Variables

This section is empty.

Functions

func NewEngineWithFallback

func NewEngineWithFallback(preferred, fallback promql.QueryEngine, reg prometheus.Registerer, logger log.Logger) promql.QueryEngine

func NewNotSupportedError

func NewNotSupportedError(reason string) error

Types

type EngineFallbackInjector

type EngineFallbackInjector struct{}

func (EngineFallbackInjector) Wrap

type EngineWithFallback

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

func (EngineWithFallback) NewInstantQuery

func (e EngineWithFallback) NewInstantQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, ts time.Time) (promql.Query, error)

func (EngineWithFallback) NewRangeQuery

func (e EngineWithFallback) NewRangeQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, start, end time.Time, interval time.Duration) (promql.Query, error)

type NotSupportedError

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

func (NotSupportedError) Error

func (e NotSupportedError) Error() string

func (NotSupportedError) Is

func (e NotSupportedError) Is(target error) bool

Jump to

Keyboard shortcuts

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