loki

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 14 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)

func ToLabelSet

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

Types

type Loki

type Loki struct {
	plugin.PluginCommon
	sync.Mutex

	MaxStream   int
	MaxLineSize int
	client.Config
	client.Client

	*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) 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