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 CRegistry ¶
type CRegistry struct { *prometheus.Registry // contains filtered or unexported fields }
only re-write the implementation of Gather()
func NewCRegistry ¶
func NewCRegistry() *CRegistry
type MilvusRegistry ¶
type MilvusRegistry struct { GoRegistry *prometheus.Registry CRegistry *CRegistry }
re-write the implementation of Gather()
func NewMilvusRegistry ¶
func NewMilvusRegistry() *MilvusRegistry
func (*MilvusRegistry) Gather ¶
func (r *MilvusRegistry) Gather() ([]*dto.MetricFamily, error)
Gather implements Gatherer.
Click to show internal directories.
Click to hide internal directories.