[GO][ADD] Added a new collector for detect-internet

This commit is contained in:
BuildTools
2020-12-02 03:04:18 +01:00
parent 34a486986b
commit bc05385e81
4 changed files with 96 additions and 3 deletions

View File

@@ -175,6 +175,13 @@ func WithIpsec() Option {
}
}
// WithInternet enables internet access metrics
func WithInternet() Option {
return func(c *collector) {
c.collectors = append(c.collectors, newInternetCollector())
}
}
// Option applies options to collector
type Option func(*collector)