Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoMetric is returned when no metric is found in input line ErrNoMetric = fmt.Errorf("no metric in line") )
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { MetricName string DefaultTags map[string]string TagKeys []string AllowedKeys []string }
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.