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.
Click to show internal directories.
Click to hide internal directories.