Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricWithValue ¶
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
Click to show internal directories.
Click to hide internal directories.