[#373] metrics: Add blobstor metrics

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-06-07 18:04:23 +03:00
parent 16a142cd0c
commit 56f320dd85
7 changed files with 198 additions and 42 deletions

View file

@ -73,3 +73,11 @@ func (m *shardIDPathModeValue) Delete(shardID, path string) {
pathLabel: path,
})
}
func modeFromBool(readOnly bool) string {
modeValue := readWriteMode
if readOnly {
modeValue = readOnlyMode
}
return modeValue
}