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

@ -33,7 +33,6 @@ const (
)
type meminfoCollector struct {
config Config
metrics map[string]prometheus.Gauge
}
@ -41,11 +40,9 @@ func init() {
Factories["meminfo"] = NewMeminfoCollector
}
// Takes a config struct and prometheus registry and returns a new Collector exposing
// memory stats.
func NewMeminfoCollector(config Config) (Collector, error) {
func NewMeminfoCollector() (Collector, error) {
return &meminfoCollector{
config: config,
metrics: map[string]prometheus.Gauge{},
}, nil
}