promtail

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v1.6.0

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 added in v1.6.0

func WithLogger(log log.Logger) Option

WithLogger overrides the default logger 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, dryRun bool, opts ...Option) (*Promtail, error)

New makes a new Promtail.

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
ui
Package ui provides the assets via a virtual filesystem.
Package ui provides the assets via a virtual filesystem.

Jump to

Keyboard shortcuts

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