Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultAuthFile = "/etc/collectd/auth_file"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectdParser ¶
type CollectdParser struct { // DefaultTags will be added to every parsed metric DefaultTags map[string]string //whether or not to split multi value metric into multiple metrics //default value is split ParseMultiValue string // contains filtered or unexported fields }
func NewCollectdParser ¶
func (*CollectdParser) Parse ¶
func (p *CollectdParser) Parse(buf []byte) ([]telegraf.Metric, error)
func (*CollectdParser) ParseLine ¶
func (p *CollectdParser) ParseLine(line string) (telegraf.Metric, error)
func (*CollectdParser) SetDefaultTags ¶
func (p *CollectdParser) SetDefaultTags(tags map[string]string)
func (*CollectdParser) SetParseOpts ¶
func (p *CollectdParser) SetParseOpts(popts *network.ParseOpts)
Click to show internal directories.
Click to hide internal directories.