forked from TrueCloudLab/frostfs-node
3c0e47e6fd
Disabled by default. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
15 lines
239 B
Go
15 lines
239 B
Go
package main
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/profiler"
|
|
)
|
|
|
|
func initMetrics(c *cfg) {
|
|
c.metrics = profiler.NewMetrics(c.log, c.viper)
|
|
}
|
|
|
|
func serveMetrics(c *cfg) {
|
|
if c.metrics != nil {
|
|
c.metrics.Start(c.ctx)
|
|
}
|
|
}
|