22 lines
383 B
Go
22 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,
|
||
|
}
|
||
|
}
|