forked from mirrors/statsd_exporter
Use same error message
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
This commit is contained in:
parent
83cec219c8
commit
da06fabcb6
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ func (r *Registry) GetGauge(metricName string, labels prometheus.Labels, help st
|
|||
|
||||
err := r.checkHistogramNameCollision(metricName)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("metrics.Metric with name %s conflicts with previously registered histogram", metricName)
|
||||
return nil, fmt.Errorf("metrics.Metric with name %s is already registered", metricName)
|
||||
}
|
||||
|
||||
var gaugeVec *prometheus.GaugeVec
|
||||
|
|
Loading…
Reference in a new issue