metrics

package
v1.15.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LabelVRouter  = "vrouter"
	LabelNeighbor = "neighbor"
	LabelAfi      = "afi"
	LabelSafi     = "safi"
)

Variables

This section is empty.

Functions

func RegisterCollector

func RegisterCollector(in collectorIn)

RegisterCollector registers the BGP Control Plane metrics collector to the global prometheus registry. We don't rely on the cell.Metric because the collectors we can provide through cell.Metric needs to implement prometheus.Collector per metric which is not optimal in our case. We can retrieve the multiple metrics from the single call to RouterManager.GetPeers() and it is wasteful to call the same function multiple times for each metric. Thus, we provide a raw Collector through MustRegister interface. We may want to revisit this in the future.

Types

This section is empty.

Jump to

Keyboard shortcuts

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