aggregate

package
v0.0.0-...-edcf33a Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricWithValue

type MetricWithValue struct {
	LFM   map[string]string
	Value float64
}

MetricWithValue is a representation of a label formatted metric with a value

func Aggregate

func Aggregate(metrics []*dto.MetricFamily, aggregateSpec map[string][]string) ([]MetricWithValue, error)

Aggregate aggregates metric families according to the given aggregate spec. A spec with key: {"metricName": "aggregateLabel"} will remove the "aggregateLabel" from all "metricName" metric families

Jump to

Keyboard shortcuts

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