transform

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package transform implements some transformations for metrics before we export them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFailureMetric

func AddFailureMetric(em *metrics.EventMetrics) error

AddFailureMetric adds failure metric to the EventMetrics based on the config options.

func CumulativeToGauge

func CumulativeToGauge(em *metrics.EventMetrics, lvCache map[string]*metrics.EventMetrics, l *logger.Logger) (*metrics.EventMetrics, error)

CumulativeToGauge creates a "gauge" EventMetrics from a "cumulative" EventMetrics using a cache. It looks for the EventMetrics in the given cache and if it exists already, it subtracts the current values from the cached values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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