Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultAuthFile = "/etc/collectd/auth_file"
)
Variables ¶
This section is empty.
Functions ¶
func UnmarshalValueList ¶
func UnmarshalValueList(vl *api.ValueList) []tinymonitor.Metric
UnmarshalValueList translates a ValueList into a Telegraf metric.
Types ¶
type CollectdParser ¶
type CollectdParser struct { // DefaultTags will be added to every parsed metric DefaultTags map[string]string // contains filtered or unexported fields }
func NewCollectdParser ¶
func NewCollectdParser( authFile string, securityLevel string, typesDB []string, ) (*CollectdParser, error)
func (*CollectdParser) Parse ¶
func (p *CollectdParser) Parse(buf []byte) ([]tinymonitor.Metric, error)
func (*CollectdParser) ParseLine ¶
func (p *CollectdParser) ParseLine(line string) (tinymonitor.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.