Create ipsec collector (#51)

This commit is contained in:
Gábor Fási
2019-10-25 03:11:05 +02:00
committed by Steve Brunton
parent 0250e6c58e
commit c757fc7216
6 changed files with 126 additions and 1 deletions

View File

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