Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMetric = fmt.Errorf("no metric in line")
)
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { TagKeys []string `toml:"logfmt_tag_keys"` MetricName string DefaultTags map[string]string Now func() time.Time // contains filtered or unexported fields }
Parser decodes logfmt formatted messages into metrics.
func (*Parser) SetDefaultTags ¶
SetDefaultTags adds tags to the metrics outputs of Parse and ParseLine.
Click to show internal directories.
Click to hide internal directories.