target

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FileTargetType is a file target
	FileTargetType = TargetType("File")

	// JournalTargetType is a journalctl target
	JournalTargetType = TargetType("Journal")

	// SyslogTargetType is a syslog target
	SyslogTargetType = TargetType("Syslog")

	// GcplogTargetType is a target where log entries are pulled from pubsub topic.
	GcplogTargetType = TargetType("Gcplog")

	// DroppedTargetType is a target that's been dropped.
	DroppedTargetType = TargetType("dropped")

	// PushTargetType is a Loki push target
	PushTargetType = TargetType("Push")

	// WindowsTargetType is a Windows event target
	WindowsTargetType = TargetType("WindowsEvent")

	// KafkaTargetType is a Kafka target
	KafkaTargetType = TargetType("Kafka")

	// GelfTargetType is a gelf target
	GelfTargetType = TargetType("gelf")

	// CloudflareTargetType is a Cloudflare target
	CloudflareTargetType = TargetType("Cloudflare")

	// DockerTargetType is a Docker target
	DockerTargetType = TargetType("Docker")
)

Variables

This section is empty.

Functions

func IsDropped

func IsDropped(t Target) bool

IsDropped tells if a target has been dropped

Types

type Target

type Target interface {
	// Type of the target
	Type() TargetType
	// DiscoveredLabels returns labels discovered before any relabeling.
	DiscoveredLabels() model.LabelSet
	// Labels returns labels that are added to this target and its stream.
	Labels() model.LabelSet
	// Ready tells if the targets is ready
	Ready() bool
	// Details is additional information about this target specific to its type
	Details() interface{}
}

Target is a promtail scrape target

func NewDroppedTarget

func NewDroppedTarget(reason string, discoveredLabels model.LabelSet) Target

type TargetType

type TargetType string

TargetType is the type of target nolint:revive

Jump to

Keyboard shortcuts

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