[#155] metrics: Use default registerer for app metrics #155

Merged
dkirillov merged 1 commit from dkirillov/frostfs-s3-gw:bugfix/return_app_metrics into master 2023-06-28 10:10:56 +00:00

View file

@ -16,7 +16,7 @@ type StatisticScraper interface {
}
type GateMetrics struct {
registry *prometheus.Registry
registry prometheus.Registerer
State *StateMetrics
Pool *poolMetricsCollector
Billing *billingMetrics
@ -24,7 +24,7 @@ type GateMetrics struct {
}
func NewGateMetrics(scraper StatisticScraper) *GateMetrics {
registry := prometheus.NewRegistry()
registry := prometheus.DefaultRegisterer
stateMetric := newStateMetrics()
registry.MustRegister(stateMetric)