Update prometheus_collector.go
fix incorrect comparison err message
This commit is contained in:
parent
81635163ce
commit
a0c1a1c33f
@ -72,7 +72,7 @@ func NewPrometheusCollector(collectorName string, configFile []byte, metricCount
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user