Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for netflow receiver.
Types ¶
type Config ¶
type Config struct { // The scheme defines the type of flow data that the listener will receive // The scheme must be one of sflow, netflow, or flow Scheme string `mapstructure:"scheme"` // The hostname or IP address that the listener will bind to Hostname string `mapstructure:"hostname"` // The port that the listener will bind to Port int `mapstructure:"port"` // The number of sockets that the listener will use Sockets int `mapstructure:"sockets"` // The number of workers that the listener will use to decode incoming flow messages // By default it will be two times the number of sockets // Ideally set this to the number of CPU cores Workers int `mapstructure:"workers"` // The size of the queue that the listener will use // This is a buffer that will hold flow messages before they are processed by a worker QueueSize int `mapstructure:"queue_size"` }
Config represents the receiver config settings within the collector's config.yaml
Click to show internal directories.
Click to hide internal directories.