Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultBatchSize sets how many points to batch to influx DefaultBatchSize = 64 // DefaultQueueSize sets the size of the send queue DefaultQueueSize = 8192 // DefaultPeriod sets how many seconds to flush the queu DefaultPeriod = 60 )
Variables ¶
View Source
var ( // Debug shows match results if enabled Debug bool // Directory specifies where to look for additional grok patterns Directory = "patterns" // ErrNoMatch is returned pattern did not match against input ErrNoMatch = fmt.Errorf("No match") )
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
Pattern string // the grok pattern name
Key string // the
Good []string // list of keys of captured fields to use as values
Tags []string // list of keys of captured fields to use as tags
Valid map[string]string // an optional map of values where
}
Filter defines a secondary groking of a result set
type InfluxConfig ¶
type InfluxConfig struct {
Host string
Username string
Password string
Port int
Batch client.BatchPointsConfig
}
InfluxConfig defines connection requirements
type Translate ¶
type Translate struct {
Pattern string // Pattern to apply when parsing data
Key string // Lookup the value of Key, if found use it as point name, otherwise use Key itself
TSLayout string // Timestamp Layout for parsing
TSField string // Field to be parsed for timestamp
TFields []string // List of tag fields to use
VFields []string // List of fields to use for values
}
Translate controls how the grok results are converted to a data point
Click to show internal directories.
Click to hide internal directories.