forked from TrueCloudLab/frostfs-node
[#1658] node: Support object counter metrics
Increment shard's object counter on successful `Put` calls and decrement on `Delete`. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
067ab44e0b
commit
745f72fff0
7 changed files with 87 additions and 15 deletions
|
@ -16,6 +16,8 @@ type MetricRegister interface {
|
|||
AddRangeDuration(d time.Duration)
|
||||
AddSearchDuration(d time.Duration)
|
||||
AddListObjectsDuration(d time.Duration)
|
||||
|
||||
AddToObjectCounter(shardID string, delta int)
|
||||
}
|
||||
|
||||
func elapsed(addFunc func(d time.Duration)) func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue