target

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

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

func NewDiscoverer

func NewDiscoverer(log logr.Logger, manager *discovery.Manager, hook discoveryHook, scrapeConfigsUpdater scrapeConfigsUpdater) *Discoverer

func (*Discoverer) ApplyConfig

func (m *Discoverer) ApplyConfig(source allocatorWatcher.EventSource, scrapeConfigs []*promconfig.ScrapeConfig) error

func (*Discoverer) Close

func (m *Discoverer) Close()

func (*Discoverer) ProcessTargets added in v0.113.0

func (m *Discoverer) ProcessTargets(builder *labels.Builder, tsets map[string][]*targetgroup.Group, fn func(targets map[string]*Item))

func (*Discoverer) Watch

func (m *Discoverer) Watch(fn func(targets map[string]*Item)) error

type Item

type Item struct {
	JobName       string
	TargetURL     string
	Labels        labels.Labels
	CollectorName string
	// contains filtered or unexported fields
}

func NewItem

func NewItem(jobName string, targetURL string, labels labels.Labels, collectorName string) *Item

NewItem Creates a new target item. INVARIANTS: * Item fields must not be modified after creation. * Item should only be made via its constructor, never directly.

func (*Item) GetNodeName added in v0.94.0

func (t *Item) GetNodeName() string

func (*Item) Hash

func (t *Item) Hash() string

Jump to

Keyboard shortcuts

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