Added optical diagnostic metrics (#10)
This commit is contained in:
committed by
Steve Brunton
parent
d170b0a4d2
commit
39e54be98d
@@ -78,6 +78,13 @@ func WithPools() Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithOptics enables optical diagnstocs
|
||||
func WithOptics() Option {
|
||||
return func(c *collector) {
|
||||
c.collectors = append(c.collectors, newOpticsCollector())
|
||||
}
|
||||
}
|
||||
|
||||
// WithTimeout sets timeout for connecting to router
|
||||
func WithTimeout(d time.Duration) Option {
|
||||
return func(c *collector) {
|
||||
|
||||
Reference in New Issue
Block a user