w60g Interface collector (#63)

Allow the collection of w60g interface statistics.
This commit is contained in:
Welby McRoberts
2019-12-26 18:20:24 +00:00
committed by Steve Brunton
parent 55ae663ce3
commit 5cea9840a7
4 changed files with 159 additions and 0 deletions

View File

@@ -106,6 +106,13 @@ func WithOptics() Option {
}
}
// WithW60G enables w60g metrics
func WithW60G() Option {
return func(c *collector) {
c.collectors = append(c.collectors, neww60gInterfaceCollector())
}
}
// WithWlanSTA enables wlan STA metrics
func WithWlanSTA() Option {
return func(c *collector) {