forked from TrueCloudLab/frostfs-node
[#370] Add tree service metrics
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
f2e5dead7e
commit
bc34fee6a7
9 changed files with 117 additions and 3 deletions
15
pkg/services/tree/metrics.go
Normal file
15
pkg/services/tree/metrics.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package tree
|
||||
|
||||
import "time"
|
||||
|
||||
type MetricsRegister interface {
|
||||
AddReplicateTaskDuration(time.Duration, bool)
|
||||
AddReplicateWaitDuration(time.Duration, bool)
|
||||
AddSyncDuration(time.Duration, bool)
|
||||
}
|
||||
|
||||
type defaultMetricsRegister struct{}
|
||||
|
||||
func (defaultMetricsRegister) AddReplicateTaskDuration(time.Duration, bool) {}
|
||||
func (defaultMetricsRegister) AddReplicateWaitDuration(time.Duration, bool) {}
|
||||
func (defaultMetricsRegister) AddSyncDuration(time.Duration, bool) {}
|
Loading…
Add table
Add a link
Reference in a new issue