README ¶
Wavefront Parser Plugin
Wavefront Data Format is metrics are parsed directly into Telegraf metrics. For more information about the Wavefront Data Format see here.
Configuration
[[inputs.file]]
files = ["example"]
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "wavefront"
There are no additional configuration options for Wavefront Data Format line-protocol.
Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBufferSize = 2
Variables ¶
View Source
var ( ErrEOF = errors.New("EOF") ErrInvalidTimestamp = errors.New("invalid timestamp") )
Functions ¶
This section is empty.
Types ¶
type ElementParser ¶
type ElementParser interface {
// contains filtered or unexported methods
}
func NewWavefrontElements ¶
func NewWavefrontElements() []ElementParser
NewWavefrontElements returns a slice of ElementParser's for the Graphite format
type LoopedParser ¶
type LoopedParser struct {
// contains filtered or unexported fields
}
type NameParser ¶
type NameParser struct{}
type Parser ¶ added in v1.24.0
type Parser struct { DefaultTags map[string]string `toml:"-"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*Parser) InitFromConfig ¶ added in v1.24.0
func (*Parser) SetDefaultTags ¶ added in v1.24.0
type PointParser ¶
type PointParser struct { Elements []ElementParser // contains filtered or unexported fields }
PointParser is a thread-unsafe parser and must be kept in a pool.
type PointScanner ¶
type PointScanner struct {
// contains filtered or unexported fields
}
Lexical Point Scanner
func NewScanner ¶
func NewScanner(r io.Reader) *PointScanner
func (*PointScanner) Scan ¶
func (s *PointScanner) Scan() (Token, string)
Scan returns the next token and literal value.
type TimestampParser ¶
type TimestampParser struct {
// contains filtered or unexported fields
}
type ValueParser ¶
type ValueParser struct{}
type WhiteSpaceParser ¶
type WhiteSpaceParser struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.