diff --git a/exporter/gmond_collector.go b/exporter/gmond_collector.go index eef5a377..90d73afb 100644 --- a/exporter/gmond_collector.go +++ b/exporter/gmond_collector.go @@ -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_]`) diff --git a/exporter/runit_collector.go b/exporter/runit_collector.go index b0ccea59..22f0d707 100644 --- a/exporter/runit_collector.go +++ b/exporter/runit_collector.go @@ -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) {