memdb

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SegmentsParquetWriteBufferSize = 8 * 0x1000
)

Variables

This section is empty.

Functions

func WriteProfiles

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

Types

type FlushedHead

type FlushedHead struct {
	Index    []byte
	Profiles []byte
	Symbols  []byte
	Meta     struct {
		ProfileTypeNames []string
		MinTimeNanos     int64
		MaxTimeNanos     int64
		NumSamples       uint64
		NumProfiles      uint64
		NumSeries        uint64
	}
}
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)

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