# Functions
AddFilterExpr adds a filter expression to a logselector expression.
AssertExpressions function removes FastRegexMatchers from all Regexp matchers to allow simple objects comparison.
AssertMatchers function removes FastRegexMatchers from all Regexp matchers to allow simple objects comparison.
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
IsLogicalBinOp tests whether an operation is a logical/set binary operation.
No description provided by the author
No description provided by the author
No description provided by the author
MergeBinOp performs `op` on `left` and `right` arguments and return the `promql.Sample` value.
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
ParseExpr parses a string and returns an Expr.
No description provided by the author
ParseLabels parses labels from a string using logql parser.
ParseLogSelector parses a log selector expression `{app="foo"} |= "filter"`.
ParseMatchers parses a string and returns labels matchers, if the expression contains anything else it will return an error.
ParseSampleExpr parses a string and returns the sampleExpr.
No description provided by the author
No description provided by the author
RemoveFastRegexMatchers iterates over the matchers and recreates the matchers without *FastRegexMatcher, because Prometheus labels matcher sets a new instance each time it's created, and it prevents simple object assertions.
TokenString returns a printable string for a token or Unicode character.
# Constants
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
The result of Scan is one of these tokens or a Unicode character.
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
The result of Scan is one of these tokens or a Unicode character.
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
Field names.
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The result of Scan is one of these tokens or a Unicode character.
No description provided by the author
No description provided by the author
The result of Scan is one of these tokens or a Unicode character.
Predefined mode bits to control recognition of tokens.
GoWhitespace is the default value for the Scanner's Whitespace field.
No description provided by the author
No description provided by the author
Field names.
Field names.
No description provided by the author
No description provided by the author
The result of Scan is one of these tokens or a Unicode character.
Field names.
No description provided by the author
No description provided by the author
Field names.
Field names.
The result of Scan is one of these tokens or a Unicode character.
Field names.
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
Field names.
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
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
Field names.
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
Field names.
Field names.
No description provided by the author
Field names.
conversion Op.
No description provided by the author
No description provided by the author
No description provided by the author
drop labels.
No description provided by the author
No description provided by the author
No description provided by the author
function filters.
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
keep labels.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
parsers.
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
range vector ops.
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
internal expressions not represented in LogQL.
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
parser flags.
Field names.
binops - arithmetic.
No description provided by the author
probabilistic aggregations.
No description provided by the author
No description provided by the author
binops - comparison.
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
binops - logical/set.
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
vector ops.
No description provided by the author
No description provided by the author
vector.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
Field names.
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
Field names.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
Field names.
The result of Scan is one of these tokens or a Unicode character.
No description provided by the author
Field names.
No description provided by the author
Field names.
Field names.
Field names.
Predefined mode bits to control recognition of tokens.
Predefined mode bits to control recognition of tokens.
includes Ints and hexadecimal floats.
Predefined mode bits to control recognition of tokens.
Predefined mode bits to control recognition of tokens.
Predefined mode bits to control recognition of tokens.
Predefined mode bits to control recognition of tokens.
if set with ScanComments, comments become white space.
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The result of Scan is one of these tokens or a Unicode character.
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
No description provided by the author
No description provided by the author
Field names.
No description provided by the author
Field names.
Field names.
No description provided by the author
Field names.
Field names.
Field names.
No description provided by the author
# Variables
MaxCharsPerLine is used to qualify whether some LogQL expressions are worth `splitting` into new lines.
# Structs
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
Grouping struct represents the grouping by/without label(s) for vector aggregators and range vector aggregators.
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
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
Position is a value that represents a source position.
RangeAggregationExpr not all range vector aggregation expressions support grouping by/without label(s), therefore the Grouping struct can be nil.
A Scanner implements reading of Unicode characters and tokens from an io.Reader.
No description provided by the author
VectorAggregationExpr all vector aggregation expressions support grouping by/without label(s), therefore the Grouping struct can never be nil.
No description provided by the author
VectorMatching describes how elements from two Vectors in a binary operation are supposed to be matched.
# Interfaces
No description provided by the author
Expr is the root expression which can be a SampleExpr or LogSelectorExpr
sumtype:decl.
LogSelectorExpr is a LogQL expression filtering and returning logs.
No description provided by the author
No description provided by the author
SampleExpr is a LogQL expression filtering logs and returning metric samples.
No description provided by the author
StageExpr is an expression defining a single step into a log pipeline
sumtype:decl.
No description provided by the author
No description provided by the author
# Type aliases
MultiStageExpr is multiple stages which implements a LogSelectorExpr.
Type alias for backward compatibility.
Type alias for backward compatibility.
VectorMatchCardinality describes the cardinality relationship of two Vectors in a binary operation.
No description provided by the author