Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExtensionFactory
NewFactory creates a factory for FluentBit extension.
Types ¶
type Config ¶
type Config struct { config.ExtensionSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // SizeMiB is the size, in MiB, of the memory ballast // to be created for this process. SizeMiB uint64 `mapstructure:"size_mib"` // SizeInPercentage is the maximum amount of memory ballast, in %, targeted to be // allocated. The fixed memory settings SizeMiB has a higher precedence. SizeInPercentage uint64 `mapstructure:"size_in_percentage"` }
Config has the configuration for the ballast extension.
type MemoryBallast ¶ added in v0.31.0
type MemoryBallast struct {
// contains filtered or unexported fields
}
func (*MemoryBallast) GetBallastSize ¶ added in v0.31.0
func (m *MemoryBallast) GetBallastSize() uint64
GetBallastSize returns the current ballast memory setting in bytes
Click to show internal directories.
Click to hide internal directories.