stats

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blooms

type Blooms struct {
	sync.RWMutex
	Streams, Chunks *bloom.BloomFilter
	// contains filtered or unexported fields
}

TODO(owen-d): shard this across a slice of smaller bloom filters to reduce lock contention Bloom filters for estimating duplicate statistics across both series and chunks within TSDB indices. These are used to calculate data topology statistics prior to running queries.

func (*Blooms) AddChunk

func (b *Blooms) AddChunk(fp model.Fingerprint, chk index.ChunkMeta)

func (*Blooms) AddStream

func (b *Blooms) AddStream(fp model.Fingerprint)

func (*Blooms) Stats

func (b *Blooms) Stats() Stats

type PoolBloom

type PoolBloom struct {
	// contains filtered or unexported fields
}
var BloomPool PoolBloom

func (*PoolBloom) Get

func (p *PoolBloom) Get() *Blooms

func (*PoolBloom) Put

func (p *PoolBloom) Put(x *Blooms)

type Stats

func MergeStats

func MergeStats(xs ...*Stats) (s Stats)

Jump to

Keyboard shortcuts

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