metrics

package
v0.10.3-0...-f06509b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

func (*CRegistry) Gather

func (r *CRegistry) Gather() (res []*dto.MetricFamily, err error)

Gather implements Gatherer.

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.

Jump to

Keyboard shortcuts

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