Create ipsec collector (#51)
This commit is contained in:
committed by
Steve Brunton
parent
0250e6c58e
commit
c757fc7216
@@ -134,6 +134,13 @@ func WithTLS(insecure bool) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithIpsec enables ipsec metrics
|
||||
func WithIpsec() Option {
|
||||
return func(c *collector) {
|
||||
c.collectors = append(c.collectors, newIpsecCollector())
|
||||
}
|
||||
}
|
||||
|
||||
// Option applies options to collector
|
||||
type Option func(*collector)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user