Added optical diagnostic metrics (#10)

This commit is contained in:
Daniel Czerwonk
2018-05-07 20:31:19 +02:00
committed by Steve Brunton
parent d170b0a4d2
commit 39e54be98d
9 changed files with 181 additions and 14 deletions

View File

@@ -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) {