Fix collectorFactories variable name

This commit is contained in:
Johannes 'fish' Ziemke 2014-02-12 11:22:59 +01:00
parent 6b77696a33
commit fd00dbe1cc
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ type gmondCollector struct {
}
func init() {
collectors = append(collectors, NewGmondCollector)
collectorFactories = append(collectorFactories, NewGmondCollector)
}
var illegalCharsRE = regexp.MustCompile(`[^a-zA-Z0-9_]`)

View File

@ -16,7 +16,7 @@ type runitCollector struct {
}
func init() {
collectors = append(collectors, NewRunitCollector)
collectorFactories = append(collectorFactories, NewRunitCollector)
}
func NewRunitCollector(config config, registry prometheus.Registry) (Collector, error) {