package internal

import "github.com/prometheus/client_golang/prometheus/internal"

Index

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.

Source Files

metric.go

Version
v1.11.1
Published
Feb 15, 2022
Platform
windows/amd64
Imports
2 packages
Last checked
1 month ago

Tools for package owners.