diff --git a/exporter/metrics.go b/exporter/metrics.go index 523da965..ae6eb990 100644 --- a/exporter/metrics.go +++ b/exporter/metrics.go @@ -301,7 +301,7 @@ func makeMetrics(prefix string, m bson.M, labels map[string]string, compatibleMo for k, val := range m { nextPrefix := prefix + k - var l = make(map[string]string) + l := make(map[string]string) if label, ok := keyNodesToLabels[prefix]; ok { for k, v := range labels { l[k] = v