seriesvolume

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MatchAny     = "{}"
	DefaultLimit = 100
	Series       = "series"
	Labels       = "labels"

	DefaultAggregateBy = Series

	ErrVolumeMaxSeriesHit = "the query hit the max number of series limit (limit: %d series)"
)

Variables

This section is empty.

Functions

func AggregateBySeries

func AggregateBySeries(aggregateBy string) bool

func MapToVolumeResponse

func MapToVolumeResponse(mergedVolumes map[string]uint64, limit int) *logproto.VolumeResponse

func Merge

func Merge(responses []*logproto.VolumeResponse, limit int32) *logproto.VolumeResponse

func ValidateAggregateBy

func ValidateAggregateBy(aggregateBy string) bool

Types

type Accumulator

type Accumulator struct {
	// contains filtered or unexported fields
}

TODO(masslessparticle): Lock striping to reduce contention on this map

func NewAccumulator

func NewAccumulator(limit int32, maxSize int) *Accumulator

func (*Accumulator) AddVolume

func (acc *Accumulator) AddVolume(name string, size uint64) error

func (*Accumulator) Volumes

func (acc *Accumulator) Volumes() *logproto.VolumeResponse

Jump to

Keyboard shortcuts

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