targets

package
v1.6.2-0...-b66c343 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileScrapeConfigs           = "fileScrapeConfigs"
	JournalScrapeConfigs        = "journalScrapeConfigs"
	SyslogScrapeConfigs         = "syslogScrapeConfigs"
	GcplogScrapeConfigs         = "gcplogScrapeConfigs"
	PushScrapeConfigs           = "pushScrapeConfigs"
	WindowsEventsConfigs        = "windowsEventsConfigs"
	KafkaConfigs                = "kafkaConfigs"
	GelfConfigs                 = "gelfConfigs"
	CloudflareConfigs           = "cloudflareConfigs"
	DockerSDConfigs             = "dockerSDConfigs"
	HerokuDrainConfigs          = "herokuDrainConfigs"
	AzureEventHubsScrapeConfigs = "azureeventhubsScrapeConfigs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TargetManagers

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

TargetManagers manages a list of target managers.

func NewTargetManagers

func NewTargetManagers(
	app stdin.Shutdownable,
	reg prometheus.Registerer,
	logger log.Logger,
	positionsConfig positions.Config,
	client api.EntryHandler,
	scrapeConfigs []scrapeconfig.Config,
	targetConfig *file.Config,
	watchConfig file.WatchConfig,
) (*TargetManagers, error)

NewTargetManagers makes a new TargetManagers

func (*TargetManagers) ActiveTargets

func (tm *TargetManagers) ActiveTargets() map[string][]target.Target

ActiveTargets returns active targets per jobs

func (*TargetManagers) AllTargets

func (tm *TargetManagers) AllTargets() map[string][]target.Target

AllTargets returns all targets per jobs

func (*TargetManagers) Ready

func (tm *TargetManagers) Ready() bool

Ready if there's at least one ready target manager.

func (*TargetManagers) Stop

func (tm *TargetManagers) Stop()

Stop the TargetManagers.

Directories

Path Synopsis
win_eventlog
Package win_eventlog Input plugin to collect Windows Event Log messages
Package win_eventlog Input plugin to collect Windows Event Log messages

Jump to

Keyboard shortcuts

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