mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 22:19:44 -08:00
Minor cleanup.
This commit is contained in:
parent
b199e6dbc3
commit
26e294c1af
|
@ -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,
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue