Documentation ¶
Index ¶
- Variables
- func CreateLogsProcessor(_ context.Context, set component.ProcessorCreateSettings, cfg config.Processor, ...) (component.LogsProcessor, error)
- func CreateTracesProcessor(_ context.Context, set component.ProcessorCreateSettings, cfg config.Processor, ...) (component.TracesProcessor, error)
- func NewFactory() component.ProcessorFactory
- type Config
- type Rollup
- type RollupType
Constants ¶
This section is empty.
Variables ¶
View Source
var RollupTypes = []RollupType{RollupSum, RollupDatasketch, RollupMax, RollupMin, RollupSumOfSquares}
RollupTypes contains all available rollup types.
Functions ¶
func CreateLogsProcessor ¶
func CreateLogsProcessor( _ context.Context, set component.ProcessorCreateSettings, cfg config.Processor, nextConsumer consumer.Logs, ) (component.LogsProcessor, error)
CreateLogsProcessor returns rollupProcessor handling logs.
func CreateTracesProcessor ¶
func CreateTracesProcessor( _ context.Context, set component.ProcessorCreateSettings, cfg config.Processor, nextConsumer consumer.Traces, ) (component.TracesProcessor, error)
CreateTracesProcessor returns rollupProcessor handling traces.
func NewFactory ¶
func NewFactory() component.ProcessorFactory
NewFactory returns a new factory for the Rollup processor.
Types ¶
type Config ¶
type Config struct { config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct Rollups []Rollup `mapstructure:"rollups"` }
Config defines configuration for rollup processor.
type Rollup ¶
type Rollup struct { FromField string `mapstructure:"from"` ToField string `mapstructure:"to"` Type RollupType `mapstructure:"type"` }
Rollup represents singe rollup operation. It describes Type of operation to be done on all `FromField`s from logs/traces. Result of operation is stored in `ToField`.
type RollupType ¶
type RollupType string
RollupType represents rollup type available in the processor.
const ( // RollupSum rolls up fields by adding them. RollupSum RollupType = "sum" // RollupMax rolls up fields by getting max value of them. RollupMax RollupType = "max" // RollupMin rolls up fields by getting min value of them. RollupMin RollupType = "min" // RollupSumOfSquares rolls up fields by summing squares of them. RollupSumOfSquares RollupType = "sumOfSquares" // RollupDatasketch rolls up fields by creating datasketch from them. RollupDatasketch RollupType = "datasketch" )
Click to show internal directories.
Click to hide internal directories.