promtailconvert

package
v0.36.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAll

func AppendAll(f *builder.File, cfg *promtailcfg.Config, labelPrefix string, diags diag.Diagnostics) diag.Diagnostics

AppendAll analyzes the entire promtail config in memory and transforms it into Flow components. It then appends each argument to the file builder.

func Convert

func Convert(in []byte) ([]byte, diag.Diagnostics)

Convert implements a Promtail config converter.

func DefaultLimitsConfig

func DefaultLimitsConfig() limit.Config

func DefaultPositionsConfig

func DefaultPositionsConfig() positions.Config

Types

type Config

type Config struct {
	promtailcfg.Config `yaml:",inline"`
}

func (*Config) Clone

func (c *Config) Clone() flagext.Registerer

Clone takes advantage of pass-by-value semantics to return a distinct *Config. This is primarily used to parse a different flag set without mutating the original *Config.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳