Documentation ¶
Overview ¶
Package throughputmeasurementprocessor provides a processor that measure the amount of otlp structures flowing through it
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetThroughputRegistry ¶ added in v1.59.0
func GetThroughputRegistry(host component.Host, bindplane component.ID) (measurements.ThroughputMeasurementsRegistry, error)
GetThroughputRegistry returns the throughput registry that should be registered to based on the component ID. nil, nil may be returned by this function. In this case, the processor should not register it's throughput measurements anywhere.
func NewFactory ¶
NewFactory creates a new ProcessorFactory with default configuration
Types ¶
type Config ¶
type Config struct { // Enable controls whether measurements are taken or not. Enabled bool `mapstructure:"enabled"` // SamplingRatio is the ratio of payloads that are measured. Values between 0.0 and 1.0 are valid. SamplingRatio float64 `mapstructure:"sampling_ratio"` // Bindplane extension to use in order to report metrics. Optional. BindplaneExtension component.ID `mapstructure:"bindplane_extension"` // Extra labels to add to measurements and associate with emitted metrics ExtraLabels map[string]string `mapstructure:"extra_labels"` }
Config is the configuration for the processor
Click to show internal directories.
Click to hide internal directories.