Update prometheus_collector.go

fix incorrect comparison err message
This commit is contained in:
Allen Sun 2017-08-16 11:23:15 +08:00 committed by allencloud
parent 81635163ce
commit a0c1a1c33f

View File

@ -72,7 +72,7 @@ func NewPrometheusCollector(collectorName string, configFile []byte, metricCount
} }
if metricCountLimit < 0 { if metricCountLimit < 0 {
return nil, fmt.Errorf("Metric count limit must be greater than 0") return nil, fmt.Errorf("Metric count limit must be greater than or equal to 0")
} }
var metricsSet map[string]bool var metricsSet map[string]bool