journal

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JournalTargetManager

type JournalTargetManager struct{}

JournalTargetManager manages a series of JournalTargets. nolint:revive

func NewJournalTargetManager

func NewJournalTargetManager(
	_ *Metrics,
	logger log.Logger,
	_ positions.Positions,
	_ api.EntryHandler,
	_ []scrapeconfig.Config,
) (*JournalTargetManager, error)

NewJournalTargetManager returns nil as JournalTargets are not supported on this platform.

func (*JournalTargetManager) ActiveTargets

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

ActiveTargets always returns nil on non-Linux platforms.

func (*JournalTargetManager) AllTargets

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

AllTargets always returns nil on non-Linux platforms.

func (*JournalTargetManager) Ready

func (tm *JournalTargetManager) Ready() bool

Ready always returns false for JournalTargetManager on non-Linux platforms.

func (*JournalTargetManager) Stop

func (tm *JournalTargetManager) Stop()

Stop is a no-op on non-Linux platforms.

type Metrics

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

Metrics holds a set of journal target metrics.

func NewMetrics

func NewMetrics(reg prometheus.Registerer) *Metrics

NewMetrics creates a new set of journal target metrics. If reg is non-nil, the metrics will be registered.

Jump to

Keyboard shortcuts

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