Minor cleanup.

This commit is contained in:
Johannes 'fish' Ziemke 2013-05-14 15:45:38 +02:00
parent b199e6dbc3
commit 26e294c1af
3 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ func New(configFile string) (e exporter, err error) {
registry := prometheus.NewRegistry() registry := prometheus.NewRegistry()
e = exporter{ e = exporter{
configFile: configFile, configFile: configFile,
scrapeDurations: prometheus.NewDefaultHistogram(), scrapeDurations: prometheus.NewDefaultHistogram(),
metricsUpdated: prometheus.NewGauge(), metricsUpdated: prometheus.NewGauge(),
listeningAddress: ":8080", listeningAddress: ":8080",
scrapeInterval: 60 * time.Second, scrapeInterval: 60 * time.Second,

View file

@ -8,8 +8,8 @@ import (
"github.com/prometheus/node_exporter/exporter/ganglia" "github.com/prometheus/node_exporter/exporter/ganglia"
"io" "io"
"net" "net"
"time"
"strings" "strings"
"time"
) )
const ( const (