Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONParser ¶
JSONParser is a parser used to parse JSON and store tags associated with the metrics it is parsing.
func (*JSONParser) Parse ¶
func (p *JSONParser) Parse(buf []byte) ([]telegraf.Metric, error)
Parse will parse a JSON object or array and return any error associated with the JSON.
func (*JSONParser) ParseLine ¶
func (p *JSONParser) ParseLine(line string) (telegraf.Metric, error)
ParseLine will parse an individual line of JSON
func (*JSONParser) SetDefaultTags ¶
func (p *JSONParser) SetDefaultTags(tags map[string]string)
SetDefaultTags will add awscsm tag to allow filtering of metrics that are not of awscsm format.
Click to show internal directories.
Click to hide internal directories.