[#373] metrics: Add FSTree metrics

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-06-07 17:06:02 +03:00
parent d8ecc69d00
commit 16a142cd0c
8 changed files with 236 additions and 6 deletions

15
pkg/metrics/consts.go Normal file
View file

@ -0,0 +1,15 @@
package metrics
const (
fstreeSubSystem = "fstree"
successLabel = "success"
shardIDLabel = "shardID"
modeLabel = "mode"
pathLabel = "path"
methodLabel = "method"
readWriteMode = "READ_WRITE"
readOnlyMode = "READ_ONLY"
closedMode = "CLOSED"
)