Naive support for routes per RIP protocol

Our network uses RIP for internal routing. This feature allows monitoring routes distributed through RIP
This commit is contained in:
Konstantin Sharlaimov 2022-01-25 18:14:32 +01:00 committed by GitHub
parent 4bfa7adfef
commit 0da4c106ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {