Fix collectorFactories variable name
parent
6b77696a33
commit
fd00dbe1cc
|
@ -28,7 +28,7 @@ type gmondCollector struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
collectors = append(collectors, NewGmondCollector)
|
collectorFactories = append(collectorFactories, NewGmondCollector)
|
||||||
}
|
}
|
||||||
|
|
||||||
var illegalCharsRE = regexp.MustCompile(`[^a-zA-Z0-9_]`)
|
var illegalCharsRE = regexp.MustCompile(`[^a-zA-Z0-9_]`)
|
||||||
|
|
|
@ -16,7 +16,7 @@ type runitCollector struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
collectors = append(collectors, NewRunitCollector)
|
collectorFactories = append(collectorFactories, NewRunitCollector)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewRunitCollector(config config, registry prometheus.Registry) (Collector, error) {
|
func NewRunitCollector(config config, registry prometheus.Registry) (Collector, error) {
|
||||||
|
|
Loading…
Reference in New Issue