Merge pull request #129 from digitalentity/de_rip_support

Naive support for routes per RIP protocol
This commit is contained in:
Steve Brunton 2022-02-21 12:56:31 -05:00 committed by GitHub
commit 00cc1d36e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ func (c *routesCollector) init() {
c.countDesc = description(prefix, "total_count", "number of routes in RIB", labelNames)
c.countProtocolDesc = description(prefix, "protocol_count", "number of routes per protocol in RIB", append(labelNames, "protocol"))
c.protocols = []string{"bgp", "static", "ospf", "dynamic", "connect"}
c.protocols = []string{"bgp", "static", "ospf", "dynamic", "connect", "rip"}
}
func (c *routesCollector) describe(ch chan<- *prometheus.Desc) {