frostfs-node/pkg/metrics/metrics.go
Alex Vanin b8e10571c6 [#426] Put prometheus behind pkg/metrics
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-03-17 10:58:00 +03:00

21 lines
383 B
Go

package metrics
const namespace = "neofs_node"
type StorageMetrics struct {
objectServiceMetrics
engineMetrics
}
func NewStorageMetrics() *StorageMetrics {
objectService := newObjectServiceMetrics()
objectService.register()
engine := newEngineMetrics()
engine.register()
return &StorageMetrics{
objectServiceMetrics: objectService,
engineMetrics: engine,
}
}