Remove config from collectors.

This commit is contained in:
Siavash Safi 2015-06-23 18:19:18 +04:30
commit f7563fe7a2
5 changed files with 8 additions and 21 deletions

View file

@ -24,7 +24,6 @@ const (
)
type netDevCollector struct {
config Config
metrics map[string]*prometheus.CounterVec
}
@ -32,11 +31,9 @@ func init() {
Factories["netdev"] = NewNetDevCollector
}
// Takes a config struct and prometheus registry and returns a new Collector exposing
// network device stats.
func NewNetDevCollector(config Config) (Collector, error) {
func NewNetDevCollector() (Collector, error) {
return &netDevCollector{
config: config,
metrics: map[string]*prometheus.CounterVec{},
}, nil
}