forked from TrueCloudLab/frostfs-node
[#373] blobovnicza: Add metrics
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
01a0c97760
commit
028d4a8058
5 changed files with 67 additions and 23 deletions
16
pkg/local_object_storage/blobovnicza/metrics.go
Normal file
16
pkg/local_object_storage/blobovnicza/metrics.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package blobovnicza
|
||||
|
||||
type Metrics interface {
|
||||
IncOpenCount()
|
||||
DecOpenCount()
|
||||
|
||||
IncSize(size uint64)
|
||||
DecSize(size uint64)
|
||||
}
|
||||
|
||||
type noopMetrics struct{}
|
||||
|
||||
func (m *noopMetrics) IncOpenCount() {}
|
||||
func (m *noopMetrics) DecOpenCount() {}
|
||||
func (m *noopMetrics) IncSize(uint64) {}
|
||||
func (m *noopMetrics) DecSize(uint64) {}
|
Loading…
Add table
Add a link
Reference in a new issue