Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(promRegistry *prometheus.Registry, engine iface.Engine) component.ProcessorFactory
NewFactory returns a new factory for the metrics processor.
Types ¶
type Config ¶
type Config struct { config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // The lowest bucket in latency histogram LatencyBucketStartMS float64 `mapstructure:"latency_bucket_start_ms" validate:"gte=0" default:"20"` // The bucket width in latency histogram LatencyBucketWidthMS float64 `mapstructure:"latency_bucket_width_ms" validate:"gte=0" default:"20"` // The number of buckets in latency histogram LatencyBucketCount int `mapstructure:"latency_bucket_count" validate:"gte=0" default:"100"` // contains filtered or unexported fields }
Config holds configuration for the metrics processor.
Click to show internal directories.
Click to hide internal directories.