promtail

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(p *Promtail)

Option is a function that can be passed to the New method of Promtail and customize the Promtail that is created.

func WithLogger

func WithLogger(log log.Logger) Option

WithLogger overrides the default logger for Promtail.

func WithRegisterer

func WithRegisterer(reg prometheus.Registerer) Option

WithRegisterer overrides the default registerer for Promtail.

type Promtail

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

Promtail is the root struct for Promtail.

func New

func New(cfg config.Config, newConfig func() (*config.Config, error), metrics *client.Metrics, dryRun bool, opts ...Option) (*Promtail, error)

New makes a new Promtail.

func (*Promtail) ActiveTargets

func (p *Promtail) ActiveTargets() map[string][]target.Target

ActiveTargets returns active targets per jobs from the target manager

func (*Promtail) Client

func (p *Promtail) Client() client.Client

Client returns the underlying client Promtail uses to write to Loki.

func (*Promtail) Run

func (p *Promtail) Run() error

Run the promtail; will block until a signal is received.

func (*Promtail) Shutdown

func (p *Promtail) Shutdown()

Shutdown the promtail.

Directories

Path Synopsis
discovery
ui
Package ui provides the assets via a virtual filesystem.
Package ui provides the assets via a virtual filesystem.
windows/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