From 0da4c106ce23ea269a9c5ee3f3633d8322652d87 Mon Sep 17 00:00:00 2001 From: Konstantin Sharlaimov Date: Tue, 25 Jan 2022 18:14:32 +0100 Subject: [PATCH] Naive support for routes per RIP protocol Our network uses RIP for internal routing. This feature allows monitoring routes distributed through RIP --- collector/routes_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/routes_collector.go b/collector/routes_collector.go index 5228f29..1143e32 100644 --- a/collector/routes_collector.go +++ b/collector/routes_collector.go @@ -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) {