metricsprocessor

package
v0.1.2-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL