forked from TrueCloudLab/frostfs-node
[#373] metrics: Move labels to consts
To unify label naming all lable keys and other consts are moved to one file. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
b5d9f4a285
commit
03aa210145
13 changed files with 119 additions and 160 deletions
|
@ -1,20 +1,45 @@
|
|||
package metrics
|
||||
|
||||
const (
|
||||
namespace = "frostfs_node"
|
||||
innerRingNamespace = "frostfs_ir"
|
||||
|
||||
fstreeSubSystem = "fstree"
|
||||
blobstoreSubSystem = "blobstore"
|
||||
blobovnizaTreeSubSystem = "blobovniza_tree"
|
||||
metabaseSubSystem = "metabase"
|
||||
piloramaSubSystem = "pilorama"
|
||||
engineSubsystem = "engine"
|
||||
gcSubsystem = "garbage_collector"
|
||||
innerRingSubsystem = "ir"
|
||||
morphSubsystem = "morph"
|
||||
morphCacheSubsystem = "morphcache"
|
||||
objectSubsystem = "object"
|
||||
replicatorSubsystem = "replicator"
|
||||
stateSubsystem = "state"
|
||||
treeServiceSubsystem = "treeservice"
|
||||
writeCacheSubsystem = "writecache"
|
||||
|
||||
successLabel = "success"
|
||||
shardIDLabel = "shardID"
|
||||
modeLabel = "mode"
|
||||
pathLabel = "path"
|
||||
methodLabel = "method"
|
||||
withStorageIDLabel = "withStorageID"
|
||||
successLabel = "success"
|
||||
shardIDLabel = "shard_id"
|
||||
modeLabel = "mode"
|
||||
pathLabel = "path"
|
||||
methodLabel = "method"
|
||||
withStorageIDLabel = "with_storage_id"
|
||||
statusLabel = "status"
|
||||
objectTypeLabel = "object_type"
|
||||
typeLabel = "type"
|
||||
notificationTypeLabel = "notification_type"
|
||||
invokeTypeLabel = "invoke_type"
|
||||
contractLabel = "contract"
|
||||
containerIDLabelKey = "cid"
|
||||
storageLabel = "storage"
|
||||
operationLabel = "operation"
|
||||
|
||||
readWriteMode = "READ_WRITE"
|
||||
readOnlyMode = "READ_ONLY"
|
||||
closedMode = "CLOSED"
|
||||
|
||||
failedToDeleteStatus = "failed_to_delete"
|
||||
deletedStatus = "deleted"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue