b8e10571c6
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
17 lines
293 B
Go
17 lines
293 B
Go
package main
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/profiler"
|
|
)
|
|
|
|
func initMetrics(c *cfg) {
|
|
if c.metricsCollector != nil {
|
|
c.metricsServer = profiler.NewMetrics(c.log, c.viper)
|
|
}
|
|
}
|
|
|
|
func serveMetrics(c *cfg) {
|
|
if c.metricsServer != nil {
|
|
c.metricsServer.Start(c.ctx)
|
|
}
|
|
}
|