frostfs-node/pkg/metrics/metrics.go

22 lines
383 B
Go
Raw Normal View History

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,
}
}