metrics: have Registry() return a Registry instead of Registerer
(so it can also be used as a Gatherer)
This commit is contained in:
@@ -27,7 +27,7 @@ func New() *Metrics {
|
||||
return m
|
||||
}
|
||||
|
||||
func (m *Metrics) Registry() prometheus.Registerer {
|
||||
func (m *Metrics) Registry() *prometheus.Registry {
|
||||
return m.r
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user