From a0c1a1c33f061bab2a41dc457d7d763310712373 Mon Sep 17 00:00:00 2001 From: Allen Sun Date: Wed, 16 Aug 2017 11:23:15 +0800 Subject: [PATCH] Update prometheus_collector.go fix incorrect comparison err message --- collector/prometheus_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/prometheus_collector.go b/collector/prometheus_collector.go index da8472bf..efc3f3f8 100644 --- a/collector/prometheus_collector.go +++ b/collector/prometheus_collector.go @@ -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