PoE collector (#54)

Thanks for the PR.

* PoE collector
* Correcting mistake in comment for WithPOE function
This commit is contained in:
Welby McRoberts
2019-10-25 02:12:19 +01:00
committed by Steve Brunton
parent c757fc7216
commit 9fc2841a61
4 changed files with 135 additions and 0 deletions

View File

@@ -84,6 +84,13 @@ func WithDHCPv6() Option {
}
}
// WithPOE enables PoE metrics
func WithPOE() Option {
return func(c *collector) {
c.collectors = append(c.collectors, newPOECollector())
}
}
// WithPools enables IP(v6) pool metrics
func WithPools() Option {
return func(c *collector) {