Documentation ¶
Overview ¶
package cumulativetodeltaprocessor implements a processor which converts cumulative sum metrics to cumulative delta.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ProcessorFactory
NewFactory returns a new factory for the Metrics Generation processor.
Types ¶
type Config ¶
type Config struct { config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // List of cumulative metrics to convert to delta. Default: converts all cumulative metrics to delta. Metrics []string `mapstructure:"metrics"` // The total time a state entry will live past the time it was last seen. Set to 0 to retain state indefinitely. MaxStale time.Duration `mapstructure:"max_stale"` // Set to false in order to convert non monotonic metrics MonotonicOnly bool `mapstructure:"monotonic_only"` }
Config defines the configuration for the processor.
Click to show internal directories.
Click to hide internal directories.