diff options
Diffstat (limited to 'node_exporter.go')
-rw-r--r-- | node_exporter.go | 2 |
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 | ||
74 | func filterAvailableCollectors(collectors string) string { | 74 | func 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 { |