package
3.4.2
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Functions

NewCMSTopkForCardinality creates a new topk sketch where k is the amount of topk we want, and c is the expected total cardinality of the dataset the sketch should be able to handle, including other sketches that we may merge in.
NewCountMinSketch creates a new CMS for a given width and depth.
NewCountMinSketchFromErrorAndProbability creates a new CMS for a given epsilon and delta.

# Constants

# Structs

DDSketchQuantile is a QuantileSketch implementation based on DataDog's "DDSketch: A fast and fully-mergeable quantile sketch with relative-error guarantees." paper.
Topk is a structure that uses a Count Min Sketch and a Min-Heap to track the top k events by frequency.

# Interfaces

QuantileSketch estimates quantiles over time.

# Type aliases

TopkMatrix is `promql.Value` and `parser.Value`.