forked from TrueCloudLab/frostfs-node
[#373] metrics: Add blobstor metrics
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
16a142cd0c
commit
56f320dd85
7 changed files with 198 additions and 42 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue