added DHCPL collection to configs and collectors (#69)
This commit is contained in:
5
main.go
5
main.go
@@ -39,6 +39,7 @@ var (
|
||||
withBgp = flag.Bool("with-bgp", false, "retrieves BGP routing infrormation")
|
||||
withRoutes = flag.Bool("with-routes", false, "retrieves routing table information")
|
||||
withDHCP = flag.Bool("with-dhcp", false, "retrieves DHCP server metrics")
|
||||
withDHCPL = flag.Bool("with-dhcpl", false, "retrieves DHCP server lease metrics")
|
||||
withDHCPv6 = flag.Bool("with-dhcpv6", false, "retrieves DHCPv6 server metrics")
|
||||
withPOE = flag.Bool("with-poe", false, "retrieves PoE metrics")
|
||||
withPools = flag.Bool("with-pools", false, "retrieves IP(v6) pool metrics")
|
||||
@@ -189,6 +190,10 @@ func collectorOptions() []collector.Option {
|
||||
opts = append(opts, collector.WithDHCP())
|
||||
}
|
||||
|
||||
if *withDHCPL || cfg.Features.DHCPL {
|
||||
opts = append(opts, collector.WithDHCPL())
|
||||
}
|
||||
|
||||
if *withDHCPv6 || cfg.Features.DHCPv6 {
|
||||
opts = append(opts, collector.WithDHCPv6())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user