mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-11-15 10:15:18 +01:00
Merge pull request #118 from awprice/interface-link-downs
add link-downs metric to interface collector
This commit is contained in:
commit
fd39a467e7
@ -21,8 +21,7 @@ func newInterfaceCollector() routerOSCollector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *interfaceCollector) init() {
|
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"}
|
labelNames := []string{"name", "address", "interface", "type", "disabled", "comment", "running", "slave"}
|
||||||
c.descriptions = make(map[string]*prometheus.Desc)
|
c.descriptions = make(map[string]*prometheus.Desc)
|
||||||
for _, p := range c.props[5:] {
|
for _, p := range c.props[5:] {
|
||||||
|
Loading…
Reference in New Issue
Block a user