Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeMetricFamilies ¶
func NormalizeMetricFamilies(metricFamiliesByName map[string]*dto.MetricFamily) []*dto.MetricFamily
NormalizeMetricFamilies returns a MetricFamily slice with empty MetricFamilies pruned and the remaining MetricFamilies sorted by name within the slice, with the contained Metrics sorted within each MetricFamily.
Types ¶
type LabelPairSorter ¶
LabelPairSorter implements sort.Interface. It is used to sort a slice of dto.LabelPair pointers.
func (LabelPairSorter) Len ¶
func (s LabelPairSorter) Len() int
func (LabelPairSorter) Less ¶
func (s LabelPairSorter) Less(i, j int) bool
func (LabelPairSorter) Swap ¶
func (s LabelPairSorter) Swap(i, j int)
type MetricSorter ¶
MetricSorter is a sortable slice of *dto.Metric.
func (MetricSorter) Len ¶
func (s MetricSorter) Len() int
func (MetricSorter) Less ¶
func (s MetricSorter) Less(i, j int) bool
func (MetricSorter) Swap ¶
func (s MetricSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.