Help us shape the future of Go! Take the 2026 Go Developer Survey

labels

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is responsible for aggregating, mutating, and serving process labels.

func NewManager

func NewManager(logger log.Logger, providers []metadata.Provider, relabelConfigs []*relabel.Config, profilingDuration time.Duration) *Manager

New returns an initialized Manager.

func (*Manager) ApplyConfig

func (m *Manager) ApplyConfig(relabelConfigs []*relabel.Config) error

ApplyConfig updates the Manager's config.

func (*Manager) LabelSet

func (m *Manager) LabelSet(name string, pid uint64) model.LabelSet

LabelSet returns a model.LabelSet with relabel configs applied.

func (*Manager) Labels

func (m *Manager) Labels(name string, pid uint64) labels.Labels

Labels returns a labels.Labels with relabel configs applied. Returns nil if set is dropped. This method is only used by the UI for troubleshooting.

Jump to

Keyboard shortcuts

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