From 26e294c1afc41c7fdd2564b2bbcda9891d8913e5 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Tue, 14 May 2013 15:45:38 +0200 Subject: [PATCH] Minor cleanup. --- exporter/exporter.go | 2 +- exporter/gmond_collector.go | 2 +- main.go => node_exporter.go | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename main.go => node_exporter.go (100%) 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