pyroscope

package
v1.7.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelNameDelta   = "__delta__"
	LabelName        = "__name__"
	LabelServiceName = "service_name"
)

Variables

View Source
var NoopAppendable = AppendableFunc(func(_ context.Context, _ labels.Labels, _ []*RawSample) error { return nil })

Functions

This section is empty.

Types

type Appendable

type Appendable interface {
	Appender() Appender
}

type AppendableFunc

type AppendableFunc func(ctx context.Context, labels labels.Labels, samples []*RawSample) error

func (AppendableFunc) Append

func (f AppendableFunc) Append(ctx context.Context, labels labels.Labels, samples []*RawSample) error

func (AppendableFunc) AppendIngest added in v1.5.0

func (f AppendableFunc) AppendIngest(_ context.Context, _ *IncomingProfile) error

func (AppendableFunc) Appender

func (f AppendableFunc) Appender() Appender

type AppendableIngestFunc

type AppendableIngestFunc func(ctx context.Context, profile *IncomingProfile) error

For testing AppendIngest operations

func (AppendableIngestFunc) Append

func (AppendableIngestFunc) AppendIngest

func (f AppendableIngestFunc) AppendIngest(ctx context.Context, p *IncomingProfile) error

func (AppendableIngestFunc) Appender

func (f AppendableIngestFunc) Appender() Appender

type Appender

type Appender interface {
	Append(ctx context.Context, labels labels.Labels, samples []*RawSample) error
	AppendIngest(ctx context.Context, profile *IncomingProfile) error
}

type Fanout

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

Fanout supports the default Alloy style of appendables since it can go to multiple outputs. It also allows the intercepting of appends.

func NewFanout

func NewFanout(children []Appendable, componentID string, register prometheus.Registerer) *Fanout

NewFanout creates a fanout appendable.

func (*Fanout) Appender

func (f *Fanout) Appender() Appender

Appender satisfies the Appendable interface.

func (*Fanout) Children

func (f *Fanout) Children() []Appendable

Children returns the children of the fanout.

func (*Fanout) UpdateChildren

func (f *Fanout) UpdateChildren(children []Appendable)

UpdateChildren allows changing of the children of the fanout.

type IncomingProfile added in v1.5.0

type IncomingProfile struct {
	RawBody []byte
	Headers http.Header
	URL     *url.URL
	Labels  labels.Labels
}

type RawSample

type RawSample struct {
	// raw_profile is the set of bytes of the pprof profile
	RawProfile []byte
}

Directories

Path Synopsis
Package relabel provides label manipulation for Pyroscope profiles.
Package relabel provides label manipulation for Pyroscope profiles.
internal/fastdelta
Package fastdelta tries to match up samples between two pprof profiles and take their difference.
Package fastdelta tries to match up samples between two pprof profiles and take their difference.
internal/pproflite
Package pproflite implements zero-allocation pprof encoding and decoding.
Package pproflite implements zero-allocation pprof encoding and decoding.

Jump to

Keyboard shortcuts

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