[#373] blobstor: Add metrics

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-06-06 09:05:52 +03:00
parent 8318d90ad0
commit f54cc0b607
11 changed files with 134 additions and 19 deletions

View file

@ -18,6 +18,7 @@ func (b *BlobStor) Open(readOnly bool) error {
return err
}
}
b.metrics.SetMode(readOnly)
return nil
}
@ -65,5 +66,8 @@ func (b *BlobStor) Close() error {
if firstErr == nil {
firstErr = err
}
if firstErr == nil {
b.metrics.Close()
}
return firstErr
}