forked from TrueCloudLab/frostfs-node
b8e10571c6
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
21 lines
383 B
Go
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,
|
|
}
|
|
}
|