collectd

package
v0.0.0-...-bdb06d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAuthFile = "/etc/collectd/auth_file"
)

Variables

This section is empty.

Functions

func LoadTypesDB

func LoadTypesDB(path string) (*api.TypesDB, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL