stats

package
v1.6.2-0...-b66c343 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 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 *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) AddChunkStats

func (b *Blooms) AddChunkStats(s index.ChunkStats)

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