mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-11-15 10:15:18 +01:00
add link-downs metric to interface collector
Signed-off-by: Alex Price <awprice@gmail.com>
This commit is contained in:
parent
076990fed9
commit
9ca7e9215e
@ -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:] {
|
||||
|
Loading…
Reference in New Issue
Block a user