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 { MetricName string `toml:"-"` TagKeys []string `toml:"form_urlencoded_tag_keys"` DefaultTags map[string]string `toml:"-"` }
Parser decodes "application/x-www-form-urlencoded" data into metrics
func (Parser) Parse ¶
Parse converts a slice of bytes in "application/x-www-form-urlencoded" format into metrics
func (*Parser) SetDefaultTags ¶
SetDefaultTags sets the default tags for every metric
Click to show internal directories.
Click to hide internal directories.