forked from TrueCloudLab/frostfs-node
[#374] Add inner-ring event metrics
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
8dcd06c587
commit
ebcc8afbee
27 changed files with 287 additions and 113 deletions
15
pkg/innerring/metrics/metrics.go
Normal file
15
pkg/innerring/metrics/metrics.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package metrics
|
||||
|
||||
import "time"
|
||||
|
||||
type Register interface {
|
||||
SetEpoch(epoch uint64)
|
||||
SetHealth(s int32)
|
||||
AddEvent(d time.Duration, typ string, success bool)
|
||||
}
|
||||
|
||||
type DefaultRegister struct{}
|
||||
|
||||
func (DefaultRegister) SetEpoch(uint64) {}
|
||||
func (DefaultRegister) SetHealth(int32) {}
|
||||
func (DefaultRegister) AddEvent(time.Duration, string, bool) {}
|
Loading…
Add table
Add a link
Reference in a new issue