[#1653] blobstor: Add IO tag label to metrics

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-02-18 11:23:10 +03:00
parent 3a6a58b163
commit fae4040433
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0
12 changed files with 65 additions and 42 deletions

View file

@ -7,24 +7,24 @@ type Metrics interface {
SetMode(readOnly bool)
Close()
Delete(d time.Duration, success, withStorageID bool)
Exists(d time.Duration, success, withStorageID bool)
GetRange(d time.Duration, size int, success, withStorageID bool)
Get(d time.Duration, size int, success, withStorageID bool)
Iterate(d time.Duration, success bool)
Put(d time.Duration, size int, success bool)
ObjectsCount(d time.Duration, success bool)
Delete(d time.Duration, success, withStorageID bool, ioTag string)
Exists(d time.Duration, success, withStorageID bool, ioTag string)
GetRange(d time.Duration, size int, success, withStorageID bool, ioTag string)
Get(d time.Duration, size int, success, withStorageID bool, ioTag string)
Iterate(d time.Duration, success bool, ioTag string)
Put(d time.Duration, size int, success bool, ioTag string)
ObjectsCount(d time.Duration, success bool, ioTag string)
}
type noopMetrics struct{}
func (m *noopMetrics) SetParentID(string) {}
func (m *noopMetrics) SetMode(bool) {}
func (m *noopMetrics) Close() {}
func (m *noopMetrics) Delete(time.Duration, bool, bool) {}
func (m *noopMetrics) Exists(time.Duration, bool, bool) {}
func (m *noopMetrics) GetRange(time.Duration, int, bool, bool) {}
func (m *noopMetrics) Get(time.Duration, int, bool, bool) {}
func (m *noopMetrics) Iterate(time.Duration, bool) {}
func (m *noopMetrics) Put(time.Duration, int, bool) {}
func (m *noopMetrics) ObjectsCount(time.Duration, bool) {}
func (m *noopMetrics) SetParentID(string) {}
func (m *noopMetrics) SetMode(bool) {}
func (m *noopMetrics) Close() {}
func (m *noopMetrics) Delete(time.Duration, bool, bool, string) {}
func (m *noopMetrics) Exists(time.Duration, bool, bool, string) {}
func (m *noopMetrics) GetRange(time.Duration, int, bool, bool, string) {}
func (m *noopMetrics) Get(time.Duration, int, bool, bool, string) {}
func (m *noopMetrics) Iterate(time.Duration, bool, string) {}
func (m *noopMetrics) Put(time.Duration, int, bool, string) {}
func (m *noopMetrics) ObjectsCount(time.Duration, bool, string) {}