mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-11-15 10:15:18 +01:00
fixed panic on missing label
This commit is contained in:
parent
4c50274ec7
commit
fa09ac2436
@ -17,7 +17,7 @@ type dhcpLeaseCollector struct {
|
||||
func (c *dhcpLeaseCollector) init() {
|
||||
c.props = []string{"active-mac-address", "server", "status", "expires-after", "active-address", "host-name"}
|
||||
|
||||
labelNames := []string{"name", "address", "activemacaddress", "status", "expiresafter", "activeaddress", "hostname"}
|
||||
labelNames := []string{"name", "address", "activemacaddress", "server", "status", "expiresafter", "activeaddress", "hostname"}
|
||||
c.descriptions = description("dhcp", "leases_metrics", "number of metrics", labelNames)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user