target

package
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 16 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, setTargets func(targets []*Item)) *Discoverer

func (*Discoverer) ApplyConfig

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

func (*Discoverer) Close

func (m *Discoverer) Close()

func (*Discoverer) Reload

func (m *Discoverer) Reload()

Reload triggers a reload of the scrape configs. This will process the target groups and update the targets concurrently.

func (*Discoverer) Run

func (m *Discoverer) Run() error

func (*Discoverer) UpdateTsets

func (m *Discoverer) UpdateTsets(tsets map[string][]*targetgroup.Group)

UpdateTsets updates the target sets to be scraped.

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.

func (*Item) GetNodeName

func (t *Item) GetNodeName() string

func (*Item) Hash

func (t *Item) Hash() ItemHash

type ItemHash added in v0.121.0

type ItemHash uint64

Jump to

Keyboard shortcuts

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