mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-25 00:31:00 +00:00
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