parsers

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 2 Imported by: 243

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deprecations = make(map[string]telegraf.DeprecationInfo)

Deprecations lists the deprecated plugins

View Source
var ErrEOF = errors.New("not enough data")

ErrEOF is similar to io.EOF but is a separate type to make sure we have checked the parsers using it to have the same meaning (i.e. it needs more data to complete parsing) and a way to detect partial data.

View Source
var Parsers = make(map[string]Creator)

Parsers contains the registry of all known parsers (following the new style)

Functions

func Add added in v1.22.0

func Add(name string, creator Creator)

Add adds a parser to the registry. Usually this function is called in the plugin's init function

Types

type Creator added in v1.22.0

type Creator func(defaultMetricName string) telegraf.Parser

Creator is the function to create a new parser

Jump to

Keyboard shortcuts

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