promtail

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TIMEOUT_MS = 500

Variables

This section is empty.

Functions

func NewWriter added in v1.6.1

func NewWriter(params *WithPromtailParams) (io.Writer, error)

func WithZerolog

func WithZerolog(params *WithPromtailParams) error

Types

type Config

type Config struct {
	App      string
	Host     string
	Username string
	Labels   string
	Enabled  bool
	Timeout  int
}

type WithPromtailParams

type WithPromtailParams struct {
	App               string
	Environment       string
	PromtailHost      string
	PromtailUsername  string
	PromtailPassword  string
	PromtailLabels    string
	PromtailEnabled   bool
	PromtailTimeoutMS int
}

func (WithPromtailParams) Validate

func (p WithPromtailParams) Validate() error

Jump to

Keyboard shortcuts

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