promtail

package
v1.47.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnitName is the name of the promtail service.
	UnitName = v1beta1constants.OperatingSystemConfigUnitNamePromtailService

	// PathDirectory is the path for the promtail's directory.
	PathDirectory = "/var/lib/promtail"
	// PathSetActiveJournalFileScript is the path for the active journal file script.
	PathSetActiveJournalFileScript = PathDirectory + "/scripts/set_active_journal_file.sh"
	// PathFetchTokenScript is the path to a script which fetches promtail's token for communication with the Loki
	// sidecar proxy.
	PathFetchTokenScript = PathDirectory + "/scripts/fetch-token.sh"
	// PathAuthToken is the path for the file containing promtail's authentication token for communication with the Loki
	// sidecar proxy.
	PathAuthToken = PathDirectory + "/auth-token"
	// PathConfig is the path for the promtail's configuration file.
	PathConfig = v1beta1constants.OperatingSystemConfigFilePathPromtailConfig
	// PathCACert is the path for the loki-tls certificate authority.
	PathCACert = PathDirectory + "/ca.crt"

	// ServerPort is the promtail listening port.
	ServerPort = 3001
	// PositionFile is the path for storing the scraped file offsets.
	PositionFile = "/var/log/positions.yaml"
)

Variables

This section is empty.

Functions

func New

func New() *component

New returns a new promtail component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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