agent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CgroupPathLabelName = model.LabelName("__cgroup_path__")

Variables

This section is empty.

Functions

Types

type Batcher added in v0.3.0

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

func NewBatchWriteClient added in v0.3.0

func NewBatchWriteClient(logger log.Logger, wc profilestorepb.ProfileStoreServiceClient) *Batcher

func (*Batcher) Run added in v0.3.0

func (b *Batcher) Run(ctx context.Context) error

func (*Batcher) WriteRaw added in v0.3.0

type NoopProfileStoreClient

type NoopProfileStoreClient struct{}

func (*NoopProfileStoreClient) WriteRaw

type ProfileListener added in v0.4.0

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

func NewProfileListener added in v0.4.0

func NewProfileListener(logger log.Logger, next profilestorepb.ProfileStoreServiceClient) *ProfileListener

func (*ProfileListener) NextMatchingProfile added in v0.4.0

func (l *ProfileListener) NextMatchingProfile(ctx context.Context, matchers []*labels.Matcher) (*profile.Profile, error)

func (*ProfileListener) Observe added in v0.4.0

func (l *ProfileListener) Observe(f func(*profilestorepb.WriteRawRequest)) *observer

func (*ProfileListener) ObserveProfile added in v0.4.0

func (l *ProfileListener) ObserveProfile(r *profilestorepb.WriteRawRequest)

func (*ProfileListener) RemoveObserver added in v0.4.0

func (l *ProfileListener) RemoveObserver(o *observer)

func (*ProfileListener) WriteRaw added in v0.4.0

type Record

type Record struct {
	Labels  []*profilestorepb.Label
	Profile *profile.Profile
}

TODO(kakkoyun): Remove?

Jump to

Keyboard shortcuts

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