# Functions
No description provided by the author
EvaluatorUnsupportedType is a helper for signaling that an evaluator does not support an Expr type.
GetRangeType returns whether a query is an instant query or range query.
JoinCountMinSketchVector joins the results from stepEvaluator into a CountMinSketchVector.
JoinQuantileSketchVector joins the results from stepEvaluator into a ProbabilisticQuantileMatrix.
MatchForSeriesRequest extracts and parses multiple matcher groups from a slice of strings.
No description provided by the author
NewBufferedAccumulator returns an accumulator which aggregates all query results in a slice.
NewConcatStepEvaluator joins multiple StepEvaluators.
No description provided by the author
NewDefaultEvaluator constructs a DefaultEvaluator.
NewDownstreamEngine constructs a *DownstreamEngine.
No description provided by the author
No description provided by the author
NewEngine creates a new LogQL Engine.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRangeMapper creates a new RangeMapper instance with the given duration as split interval.
No description provided by the author
NewRangeMapperWithSplitAlign is similar to `NewRangeMapper` except it accepts additional `splitAlign` argument and used to align the subqueries generated according to that.
NewResultStepEvaluator coerces a downstream vector or matrix into a StepEvaluator.
No description provided by the author
No description provided by the author
NewStreamAccumulator returns an accumulator for limited log queries.
NewTree creates a tree printer and returns a sentinel node reference which should be used to add the root.
No description provided by the author
No description provided by the author
No description provided by the author
ParseShards parses a list of string encoded shards.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Quantile calculates the given Quantile of a vector of samples.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResultIterator coerces a downstream streams result into an iter.EntryIterator.
Sortable logql contain sort or sort_desc.
# Constants
TODO(owen-d): refactor this file.
No description provided by the author
No description provided by the author
No description provided by the author
parsing evaluation result used in metrics.
MaxChildrenDisplay defines the maximum number of children that should be shown by explain.
expression type used in metrics.
parsing evaluation result used in metrics.
TODO(owen-d): refactor this file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
expression type used in metrics.
parsing evaluation result used in metrics.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
heap impl for keeping only the top n results across m streams importantly, AccumulatedStreams is _bounded_, so it will only store the top `limit` results across all streams.
No description provided by the author
No description provided by the author
No description provided by the author
ConcatLogSelectorExpr is an expr for concatenating multiple LogSelectorExpr.
ConcatSampleExpr is an expr for concatenating multiple SampleExpr Contract: The embedded SampleExprs within a linked list of ConcatSampleExprs must be of the same structure.
No description provided by the author
No description provided by the author
No description provided by the author
CountMinSketchVector tracks the count or sum of values of a metric, ie list of label value pairs.
CountMinSketchVectorStepEvaluator evaluates a count min sketch into a promql.Vector.
No description provided by the author
No description provided by the author
DownstreamEngine is an Engine implementation that can split queries into more parallelizable forms via querying the underlying backend shards individually and re-aggregating them.
DownstreamEvaluator is an evaluator which handles shard aware AST nodes.
DownstreamLogSelectorExpr is a LogSelectorExpr which signals downstream computation.
No description provided by the author
DownstreamSampleExpr is a SampleExpr which signals downstream computation.
No description provided by the author
No description provided by the author
Engine is the LogQL engine.
EngineOpts is the list of options to use with the LogQL query engine.
No description provided by the author
HeapCountMinSketchVector is a CountMinSketchVector that keeps the number of metrics to a defined maximum.
No description provided by the author
No description provided by the author
LiteralParams impls Params.
No description provided by the author
MapperMetrics is the metrics wrapper used in logql mapping (shard and range).
No description provided by the author
MatrixStepEvaluator exposes a promql.Matrix as a StepEvaluator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Shard aware mock querier.
Node is a handle associated with a specific depth in a tree.
No description provided by the author
No description provided by the author
ParamsWithExpressionOverride overrides the query expression so that the query string and the expression can differ.
ParamsWithExpressionOverride overrides the shards.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QuantileSketchEvalExpr evaluates a quantile sketch to the actual quantile.
QuantileSketchMatrixStepEvaluator steps through a matrix of quantile sketch vectors, ie t-digest or DDSketch structures per time step.
No description provided by the author
No description provided by the author
QuantileSketchVectorStepEvaluator evaluates a quantile sketch into a promql.Vector.
RangeMapper is used to rewrite LogQL sample expressions into multiple downstream sample expressions with a smaller time range that can be executed using the downstream engine.
No description provided by the author
rateCounter calculates the per-second rate of values extracted from log lines and treat them like a "counter" metric.
rateLogBytes calculates the per-second rate of log bytes.
rateLogs calculates the per-second rate of log lines or values extracted from log lines.
No description provided by the author
SelectParams specifies parameters passed to data selections.
No description provided by the author
Shard represents a shard annotation It holds either a power of two shard (legacy) or a bounded shard.
No description provided by the author
ShardWithChunkRefs is a convenience type for passing around shards with associated chunk refs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VectorIterator return simple vector like (1).
No description provided by the author
# Interfaces
Accumulator is an interface for accumulating query results.
No description provided by the author
Downstreamer is an interface for deferring responsibility for query execution.
No description provided by the author
EvaluatorFactory is an interface for iterating over data at different nodes in the AST.
Limits allow the engine to fetch limits for a given users.
Params details the parameters associated with a loki request.
Querier allows a LogQL expression to fetch an EntryIterator for a set of matchers and filters.
Query is a LogQL query to be executed.
No description provided by the author
RangeStreamingAgg streaming aggregates sample for each sample.
RangeVectorIterator iterates through a range of samples.
No description provided by the author
No description provided by the author
No description provided by the author
StepEvaluator evaluate a single step of a query.
No description provided by the author
# Type aliases
BatchRangeVectorAggregator aggregates samples for a given range of samples.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author