loki

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxPayloadSize = 1024 * 1024
View Source
const DnstapFstrmControlHeaderSize = 42
View Source
const DnstapFstrmMsgHeaderSize = 4

Variables

This section is empty.

Functions

func Setup

func Setup(bs json.RawMessage) (types.OutputPlugin, error)

Types

type Loki

type Loki struct {
	plugin.PluginCommon
	sync.Mutex

	MaxStream           int
	MaxLineSize         int
	MaxLineSizeTruncate bool

	// loki body filter
	OutputFilters types.OutputFilters
	// loki labels from DNSTAP value
	DNSTAPLabels []string
	// loki labels
	Labels map[string]string
	// loki url
	URL          string
	ClientConfig prometheusconfig.HTTPClientConfig

	*output.DnstapOutput
	// contains filtered or unexported fields
}

The loki plugin outputs messages to the loki server.

func (*Loki) Close

func (f *Loki) Close()

func (*Loki) Open

func (f *Loki) Open() error

func (*Loki) SetOutputContext

func (f *Loki) SetOutputContext(oc *types.OutputContext)

func (*Loki) ToLabelSet added in v2.4.1

func (f *Loki) ToLabelSet(dm *types.DnstapMessage) model.LabelSet

func (*Loki) Write

func (f *Loki) Write(dm *types.DnstapMessage) error

Jump to

Keyboard shortcuts

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