Remove config from collectors.
This commit is contained in:
parent
1ebda4c0aa
commit
f7563fe7a2
5 changed files with 8 additions and 21 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue