Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type GraphiteParser
- func (p *GraphiteParser) ApplyTemplate(line string) (string, map[string]string, string, error)
- func (p *GraphiteParser) Parse(buf []byte) ([]telegraf.Metric, error)
- func (p *GraphiteParser) ParseLine(line string) (telegraf.Metric, error)
- func (p *GraphiteParser) SetDefaultTags(tags map[string]string)
Constants ¶
View Source
const ( // DefaultSeparator is the default join character to use when joining multiple // measurement parts in a template. DefaultSeparator = "." )
Variables ¶
View Source
var ( MinDate = time.Date(1901, 12, 13, 0, 0, 0, 0, time.UTC) MaxDate = time.Date(2038, 1, 19, 0, 0, 0, 0, time.UTC) )
Minimum and maximum supported dates for timestamps.
Functions ¶
This section is empty.
Types ¶
type GraphiteParser ¶
type GraphiteParser struct { Separator string Templates []string DefaultTags map[string]string // contains filtered or unexported fields }
Parser encapsulates a Graphite Parser.
func NewGraphiteParser ¶
func (*GraphiteParser) ApplyTemplate ¶
ApplyTemplate extracts the template fields from the given line and returns the measurement name and tags.
func (*GraphiteParser) Parse ¶
func (p *GraphiteParser) Parse(buf []byte) ([]telegraf.Metric, error)
func (*GraphiteParser) ParseLine ¶
func (p *GraphiteParser) ParseLine(line string) (telegraf.Metric, error)
Parse performs Graphite parsing of a single line.
func (*GraphiteParser) SetDefaultTags ¶
func (p *GraphiteParser) SetDefaultTags(tags map[string]string)
Click to show internal directories.
Click to hide internal directories.