mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-25 16:51:00 +00:00
Merge pull request #410 from mattdurham/use_instance_registry
Use the instance registry instead of the prometheus.registry
This commit is contained in:
commit
6a5a089597
1 changed files with 2 additions and 2 deletions
|
@ -259,7 +259,7 @@ func (r *Registry) GetHistogram(metricName string, labels prometheus.Labels, hel
|
||||||
Buckets: buckets,
|
Buckets: buckets,
|
||||||
}, labelNames)
|
}, labelNames)
|
||||||
|
|
||||||
if err := prometheus.Register(uncheckedCollector{histogramVec}); err != nil {
|
if err := r.Registerer.Register(uncheckedCollector{histogramVec}); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -328,7 +328,7 @@ func (r *Registry) GetSummary(metricName string, labels prometheus.Labels, help
|
||||||
BufCap: summaryOptions.BufCap,
|
BufCap: summaryOptions.BufCap,
|
||||||
}, labelNames)
|
}, labelNames)
|
||||||
|
|
||||||
if err := prometheus.Register(uncheckedCollector{summaryVec}); err != nil {
|
if err := r.Registerer.Register(uncheckedCollector{summaryVec}); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue