diff --git a/exporter/exporter.go b/exporter/exporter.go index 9f2aebd2..72de61ef 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -63,7 +63,7 @@ func New(configFile string) (e exporter, err error) { registry := prometheus.NewRegistry() e = exporter{ configFile: configFile, - scrapeDurations: prometheus.NewDefaultHistogram(), + scrapeDurations: prometheus.NewDefaultHistogram(), metricsUpdated: prometheus.NewGauge(), listeningAddress: ":8080", scrapeInterval: 60 * time.Second, diff --git a/exporter/gmond_collector.go b/exporter/gmond_collector.go index ed076056..e9d263ea 100644 --- a/exporter/gmond_collector.go +++ b/exporter/gmond_collector.go @@ -8,8 +8,8 @@ import ( "github.com/prometheus/node_exporter/exporter/ganglia" "io" "net" - "time" "strings" + "time" ) const ( diff --git a/main.go b/node_exporter.go similarity index 100% rename from main.go rename to node_exporter.go