memdb

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasUnsymbolizedProfiles

func HasUnsymbolizedProfiles(symbols *symdb.Symbols) bool

TODO: move into the symbolizer package when available

func WriteProfiles

func WriteProfiles(metrics *HeadMetrics, profiles []v1.InMemoryProfile) ([]byte, error)

Types

type FlushedHead

type FlushedHead struct {
	Index        []byte
	Profiles     []byte
	Symbols      []byte
	Unsymbolized bool
	Meta         struct {
		ProfileTypeNames []string
		MinTimeNanos     int64
		MaxTimeNanos     int64
		NumSamples       uint64
		NumProfiles      uint64
		NumSeries        uint64
	}
	// contains filtered or unexported fields
}

func (*FlushedHead) WriteDatasetIndex added in v2.1.0

func (f *FlushedHead) WriteDatasetIndex(w datasetIndexWriter, idx uint32)

WriteDatasetIndex feeds the flushed head's series (labels + fingerprint) into the given dataset index writer, attributing every series to the supplied dataset index (the dataset's global position in the block). It is safe to call concurrently with other heads' writes only if the writer itself is externally synchronised; segment flushes call it serially in dataset (tenant+service) order.

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

func NewHead

func NewHead(metrics *HeadMetrics) *Head

func (*Head) Flush

func (h *Head) Flush(ctx context.Context) (res *FlushedHead, err error)

func (*Head) Ingest

func (h *Head) Ingest(p *profilev1.Profile, id uuid.UUID, externalLabels []*typesv1.LabelPair, annotations []*typesv1.ProfileAnnotation)

type HeadMetrics

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

todo remove unused

func NewHeadMetricsWithPrefix

func NewHeadMetricsWithPrefix(reg prometheus.Registerer, prefix string) *HeadMetrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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