parsers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 2 Imported by: 0

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

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

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