forked from TrueCloudLab/frostfs-node
[#1054] neofs-node: add epoch metric
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
e1137aa09f
commit
e96eb3e00b
3 changed files with 24 additions and 0 deletions
|
@ -316,6 +316,7 @@ func initCfg(path string) *cfg {
|
|||
|
||||
if metricsconfig.Address(c.appCfg) != "" {
|
||||
c.metricsCollector = metrics.NewStorageMetrics()
|
||||
netState.metrics = c.metricsCollector
|
||||
}
|
||||
|
||||
c.onShutdown(c.clientCache.CloseAll) // clean up connections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue