add link-downs metric to interface collector

Signed-off-by: Alex Price <awprice@gmail.com>
This commit is contained in:
Alex Price 2021-07-07 18:53:35 +10:00
parent 076990fed9
commit 9ca7e9215e

View File

@ -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:] {