Skip to main content

Module planner

Module planner 

Source

ModulesΒ§

at_modifier πŸ”’
Anchored selector planning and replay for the PromQL @ modifier.
function_plans πŸ”’
Dedicated helper plans for PromQL functions that cannot be expressed as a plain scalar function over the input plan: the histogram helpers, vector(), scalar(), and absent().
island πŸ”’
The binary-island fast path of the PromQL planner.
matching_filters πŸ”’
Propagation of label matchers between the operands of a PromQL binary expression.
native πŸ”’
The native fused-series route of the PromQL planner.
set_operator πŸ”’
Planning of the PromQL set operators (and, unless, and or).

StructsΒ§

BinaryResultLabels πŸ”’
Result labels a vector-vector binary operation derives from its matching modifier, projected from the operand each label belongs to.
FunctionArgs πŸ”’
PromPlanner
PromPlannerContext πŸ”’

EnumsΒ§

ScalarFunc πŸ”’
Represents different types of scalar functions supported in PromQL expressions. Each variant defines how the function should be processed and what arguments it expects.

ConstantsΒ§

DB_COLUMN_MATCHER πŸ”’
DEFAULT_FIELD_COLUMN πŸ”’
default value column name for empty metric
DEFAULT_SUBQUERY_STEP_MS πŸ”’
Step of a subquery without an explicit one (x[5m:]). Prometheus uses the global evaluation interval, whose default is one minute, rather than the query step.
DEFAULT_TIME_INDEX_COLUMN πŸ”’
FIELD_COLUMN_MATCHER πŸ”’
Special modifier to project field columns under multi-field mode
INTERVAL_1H πŸ”’
Interval 1 hour in millisecond
LE_COLUMN_NAME πŸ”’
le column for conventional histogram.
MATCH_GROUP_COUNT_COLUMN πŸ”’
Per-match-group row count the vector matching cardinality check is built on.
MAX_SCATTER_POINTS πŸ”’
Threshold for scatter scan mode
NATIVE_PROMQL_EXTENSION_KEY
The query option that turns the native fused-series route on for one query.
OR_FLOAT_FIELD_PREFIX πŸ”’
OR_HISTOGRAM_FIELD_PREFIX πŸ”’
SCALAR_FUNCTION πŸ”’
scalar() function in PromQL.
SCHEMA_COLUMN_MATCHER πŸ”’
Special modifier for cross schema query
SPECIAL_ABSENT_FUNCTION πŸ”’
absent() function in PromQL
SPECIAL_HISTOGRAM_FRACTION πŸ”’
histogram_fraction function in PromQL
SPECIAL_HISTOGRAM_QUANTILE πŸ”’
histogram_quantile function in PromQL
SPECIAL_TIME_FUNCTION πŸ”’
time() function in PromQL.
SPECIAL_VECTOR_FUNCTION πŸ”’
vector function in PromQL
TIMESTAMP_VALUE_PREFIX πŸ”’

StaticsΒ§

LABEL_NAME_REGEX πŸ”’
Static regex for validating label names according to Prometheus specification. Label names must match the regex: [a-zA-Z_][a-zA-Z0-9_]*

FunctionsΒ§

discovers_metric_name
Whether a selector names no single table and has to enumerate the schema’s metric tables.
native_promql_resolved
Whether one query asks for the native fused-series route, resolved the way planning resolves it: a stated value wins (request over session SET``), otherwise the engine default answers.

Type AliasesΒ§

BinaryFieldPair πŸ”’