Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricViews ¶
MetricViews returns the metrics views related to batching
func NewFactory ¶
func NewFactory() component.ProcessorFactory
NewFactory returns a new factory for the Batch processor.
Types ¶
type Config ¶
type Config struct { configmodels.ProcessorSettings `mapstructure:",squash"` // Timeout sets the time after which a batch will be sent regardless of size. Timeout time.Duration `mapstructure:"timeout,omitempty"` // SendBatchSize is the size of a batch which after hit, will trigger it to be sent. SendBatchSize uint32 `mapstructure:"send_batch_size,omitempty"` // SendBatchMaxSize is the maximum size of a batch. Larger batches are split into smaller units. // Default value is 0, that means no maximum size. SendBatchMaxSize uint32 `mapstructure:"send_batch_max_size,omitempty"` }
Config defines configuration for batch processor.
Click to show internal directories.
Click to hide internal directories.