From fd00dbe1cc06b6967c8ba4b901e509b46b014592 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Wed, 12 Feb 2014 11:22:59 +0100 Subject: [PATCH] Fix collectorFactories variable name --- exporter/gmond_collector.go | 2 +- exporter/runit_collector.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {