[#179] Expose pool metrics

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-28 16:44:58 +03:00 committed by Kirillov Denis
parent 21b0af9d41
commit ee49355bb7
2 changed files with 160 additions and 3 deletions

2
app.go
View file

@ -165,7 +165,7 @@ func newApp(ctx context.Context, opt ...Option) App {
}
if a.cfg.GetBool(cfgPrometheusEnabled) {
a.metrics = metrics.NewGateMetrics()
a.metrics = metrics.NewGateMetrics(a.pool)
}
return a