Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMetric = errors.New("no metric in line")
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { TagKeys []string `toml:"logfmt_tag_keys"` DefaultTags map[string]string `toml:"-"` // contains filtered or unexported fields }
Parser decodes logfmt formatted messages into metrics.
func (*Parser) InitFromConfig ¶ added in v1.24.0
InitFromConfig is a compatibility function to construct the parser the old way
func (*Parser) SetDefaultTags ¶
SetDefaultTags adds tags to the metrics outputs of Parse and ParseLine.
Click to show internal directories.
Click to hide internal directories.