forked from TrueCloudLab/frostfs-http-gw
[#179] Expose pool metrics
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
21b0af9d41
commit
ee49355bb7
2 changed files with 160 additions and 3 deletions
2
app.go
2
app.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue