Documentation
¶
Overview ¶
Collects and exports all flows to influxdb for long term storage. Tags to configure for Influxdb are from the protobuf definition. Supported Tags are: Cid,ProtoName,RemoteCountry,SamplerAddress,SrcIfDesc,DstIfDesc If no Tags are provided 'ProtoName' will be the only Tag used by default.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
Address string
Org string
Bucket string
Token string
ExportFreq int
Batchsize int
Tags []string
Fields []string
// contains filtered or unexported fields
}
Connector provides export features to Influx
func (*Connector) CreatePoint ¶
func (c *Connector) CreatePoint(msg *pb.EnrichedFlow) *write.Point
type Influx ¶
type Influx struct {
segments.BaseSegment
Address string // optional, URL for influxdb endpoint, default is http://127.0.0.1:8086
Org string // required, Influx org name
Bucket string // required, Influx bucket
Token string // required, Influx access token
Tags []string // optional, list of Tags to be created.
Fields []string // optional, list of Fields to be created, default is "Bytes,Packets"
}
Click to show internal directories.
Click to hide internal directories.