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.
Click to show internal directories.
Click to hide internal directories.