deltatorateprocessor

package module
v0.71.1-0...-0599323 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Delta to Rate Processor

Status
Stability development
Supported pipeline types metrics
Distributions contrib

Status: under development; Not recommended for production usage.

Supported pipeline types: metrics

Description

The delta to rate processor (deltatorateprocessor) converts delta sum metrics to rate metrics. This rate is a gauge.

Configuration

Configuration is specified through a list of metrics. The processor uses metric names to identify a set of delta sum metrics and calculates the rates which are gauges.

processors:
    # processor name: deltatorate
    deltatorate:

        # list the delta sum metrics to calculate the rate. This is a required field.
        metrics:
            - <metric_1_name>
            - <metric_2_name>
            .
            .
            - <metric_n_name>

Documentation

Overview

package deltatorateprocessor implements a processor which converts delta sum metrics to rates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

NewFactory returns a new factory for the Delta to Rate processor.

Types

type Config

type Config struct {

	// List of delta sum metrics to convert to rates
	Metrics []string `mapstructure:"metrics"`
}

Config defines the configuration for the processor.

func (*Config) Validate

func (config *Config) Validate() error

Validate checks whether the input configuration has all of the required fields for the processor. An error is returned if there are any invalid inputs.

Jump to

Keyboard shortcuts

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