package
2.9.12+incompatible
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
This file is taken from the golang text/scanner package so `bufLen` can be set to `maxInputSize`.
No description provided by the author

# Functions

ConcatEvaluator joins multiple StepEvaluators.
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.
No description provided by the author
Match extracts and parses multiple matcher groups from a slice of strings.
NewDefaultEvaluator constructs a DefaultEvaluator.
NewDownstreamEngine constructs a *DownstreamEngine.
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
NewRangeMapper creates a new RangeMapper instance with the given duration as split interval.
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
No description provided by the author
No description provided by the author
ResultIterator coerces a downstream streams result into an iter.EntryIterator.
ResultStepEvaluator coerces a downstream vector or matrix into a StepEvaluator.
Sortable logql contain sort or sort_desc.

# Constants

No description provided by the author
No description provided by the author
parsing evaluation result used in metrics.
expression type used in metrics.
parsing evaluation result used in metrics.
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.

# 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
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
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.
Engine is the LogQL engine.
EngineOpts is the list of options to use with the LogQL query engine.
No description provided by the author
No description provided by the author
LiteralParams impls Params.
MapperMetrics is the metrics wrapper used in logql mapping (shard and range).
No description provided by the author
MatrixStepper 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
Shard aware mock querier.
No description provided by the author
No description provided by the author
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.
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.
SelectParams specifies parameters passed to data selections.
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

# Interfaces

No description provided by the author
Downstreamer is an interface for deferring responsibility for query execution.
No description provided by the author
Evaluator 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
StepEvaluator evaluate a single step of a query.

# 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