Documentation
¶
Index ¶
- func New(opts Opts) *compatibilityEngine
- func NewDistributedEngine(opts Opts, endpoints api.RemoteEndpoints) v1.QueryEngine
- func NewRemoteEngine(opts Opts, q storage.Queryable, mint, maxt int64, labelSets []labels.Labels) *remoteEngine
- type ExplainOutputNode
- type ExplainableQuery
- type Opts
- type Query
- type QueryType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDistributedEngine ¶
func NewDistributedEngine(opts Opts, endpoints api.RemoteEndpoints) v1.QueryEngine
Types ¶
type ExplainOutputNode ¶
type ExplainOutputNode struct {
OperatorName string `json:"name,omitempty"`
Children []ExplainOutputNode `json:"children,omitempty"`
}
type ExplainableQuery ¶
type ExplainableQuery interface {
promql.Query
Explain() *ExplainOutputNode
Profile()
}
type Opts ¶
type Opts struct {
promql.EngineOpts
// LogicalOptimizers are optimizers that are run if the value is not nil. If it is nil then the default optimizers are run. Default optimizer list is available in the logicalplan package.
LogicalOptimizers []logicalplan.Optimizer
// DisableFallback enables mode where engine returns error if some expression of feature is not yet implemented
// in the new engine, instead of falling back to prometheus engine.
DisableFallback bool
// DebugWriter specifies output for debug (multi-line) information meant for humans debugging the engine.
// If nil, nothing will be printed.
// NOTE: Users will not check the errors, debug writing is best effort.
DebugWriter io.Writer
// ExtLookbackDelta specifies what time range to use to determine valid previous sample for extended range functions.
// Defaults to 1 hour if not specified.
ExtLookbackDelta time.Duration
// EnableXFunctions enables custom xRate, xIncrease and xDelta functions.
// This will default to false.
EnableXFunctions bool
// FallbackEngine
Engine v1.QueryEngine
}
Click to show internal directories.
Click to hide internal directories.