From 9ca7e9215ef476e3e932a2cbf0111b006c46e288 Mon Sep 17 00:00:00 2001 From: Alex Price Date: Wed, 7 Jul 2021 18:53:35 +1000 Subject: [PATCH] add link-downs metric to interface collector Signed-off-by: Alex Price --- collector/interface_collector.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/collector/interface_collector.go b/collector/interface_collector.go index 12f02af..dfcbc1b 100644 --- a/collector/interface_collector.go +++ b/collector/interface_collector.go @@ -21,8 +21,7 @@ func newInterfaceCollector() routerOSCollector { } func (c *interfaceCollector) init() { - c.props = []string{"name", "type", "disabled", "comment", "slave", "actual-mtu", "running", "rx-byte", "tx-byte", "rx-packet", "tx-packet", "rx-error", "tx-error", "rx-drop", "tx-drop"} - + c.props = []string{"name", "type", "disabled", "comment", "slave", "actual-mtu", "running", "rx-byte", "tx-byte", "rx-packet", "tx-packet", "rx-error", "tx-error", "rx-drop", "tx-drop", "link-downs"} labelNames := []string{"name", "address", "interface", "type", "disabled", "comment", "running", "slave"} c.descriptions = make(map[string]*prometheus.Desc) for _, p := range c.props[5:] {