aboutsummaryrefslogtreecommitdiff
path: root/node_exporter.go
diff options
context:
space:
mode:
authorTobias Schmidt <tobidt@gmail.com>2017-02-28 12:44:53 -0400
committerTobias Schmidt <tobidt@gmail.com>2017-02-28 13:05:38 -0400
commitc7034357900029e05b58d099104b1ad443edac73 (patch)
tree454ea3a5e2f1dd15de37f96c482dc8df7fd94ada /node_exporter.go
parent5289ffb27074ac9b9a48e5bf1c42d1b8937eb16f (diff)
downloadprometheus_node_collector-c7034357900029e05b58d099104b1ad443edac73.tar.bz2
prometheus_node_collector-c7034357900029e05b58d099104b1ad443edac73.tar.xz
prometheus_node_collector-c7034357900029e05b58d099104b1ad443edac73.zip
Fix all open go lint and vet issues
Diffstat (limited to 'node_exporter.go')
-rw-r--r--node_exporter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_exporter.go b/node_exporter.go
index 3e87bc4..ec69c05 100644
--- a/node_exporter.go
+++ b/node_exporter.go
@@ -72,7 +72,7 @@ func (n NodeCollector) Collect(ch chan<- prometheus.Metric) {
72} 72}
73 73
74func filterAvailableCollectors(collectors string) string { 74func filterAvailableCollectors(collectors string) string {
75 availableCollectors := make([]string, 0) 75 var availableCollectors []string
76 for _, c := range strings.Split(collectors, ",") { 76 for _, c := range strings.Split(collectors, ",") {
77 _, ok := collector.Factories[c] 77 _, ok := collector.Factories[c]
78 if ok { 78 if ok {