aggregate

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package aggregate implements operators for PromQL aggregation expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCountBySelector added in v0.10.0

func NewCountBySelector(
	counter storage.GroupedSeriesCounter, label string, matcher []*labels.Matcher, opts *query.Options,
) model.VectorOperator

NewCountBySelector returns an operator that evaluates count by (label)(<selector>) via counter.

func NewCountSelector added in v0.6.0

func NewCountSelector(counter storage.SeriesCounter, matcher []*labels.Matcher, opts *query.Options) model.VectorOperator

NewCountSelector returns an operator that evaluates count(<selector>) via counter.

func NewCountValues

func NewCountValues(next model.VectorOperator, param string, by bool, grouping []string, opts *query.Options) model.VectorOperator

func NewHashAggregate

func NewHashAggregate(
	next model.VectorOperator,
	paramOp model.VectorOperator,
	aggregation parser.ItemType,
	by bool,
	labels []string,
	opts *query.Options,
) (model.VectorOperator, error)

func NewKHashAggregate

func NewKHashAggregate(
	next model.VectorOperator,
	paramOp model.VectorOperator,
	aggregation parser.ItemType,
	by bool,
	labels []string,
	opts *query.Options,
) (model.VectorOperator, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL