metrics_names.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package stats
  2. // This file contains metric names for all errors
  3. // The naming convention is ErrorSomeThing = "error.some.thing"
  4. const (
  5. // volume server
  6. WriteToLocalDisk = "writeToLocalDisk"
  7. WriteToReplicas = "writeToReplicas"
  8. ErrorSizeMismatchOffsetSize = "errorSizeMismatchOffsetSize"
  9. ErrorSizeMismatch = "errorSizeMismatch"
  10. ErrorCRC = "errorCRC"
  11. ErrorIndexOutOfRange = "errorIndexOutOfRange"
  12. ErrorGetNotFound = "errorGetNotFound"
  13. ErrorGetInternal = "errorGetInternal"
  14. // master topology
  15. ErrorWriteToLocalDisk = "errorWriteToLocalDisk"
  16. ErrorUnmarshalPairs = "errorUnmarshalPairs"
  17. ErrorWriteToReplicas = "errorWriteToReplicas"
  18. // master client
  19. FailedToKeepConnected = "failedToKeepConnected"
  20. FailedToSend = "failedToSend"
  21. FailedToReceive = "failedToReceive"
  22. RedirectedToLeader = "redirectedToLeader"
  23. OnPeerUpdate = "onPeerUpdate"
  24. Failed = "failed"
  25. // filer handler
  26. DirList = "dirList"
  27. ContentSaveToFiler = "contentSaveToFiler"
  28. AutoChunk = "autoChunk"
  29. ChunkProxy = "chunkProxy"
  30. ChunkAssign = "chunkAssign"
  31. ChunkUpload = "chunkUpload"
  32. ChunkMerge = "chunkMerge"
  33. ChunkDoUploadRetry = "chunkDoUploadRetry"
  34. ChunkUploadRetry = "chunkUploadRetry"
  35. ChunkAssignRetry = "chunkAssignRetry"
  36. ErrorReadNotFound = "read.notfound"
  37. ErrorReadInternal = "read.internal.error"
  38. ErrorWriteEntry = "write.entry.failed"
  39. RepeatErrorUploadContent = "upload.content.repeat.failed"
  40. ErrorChunkAssign = "chunkAssign.failed"
  41. ErrorReadChunk = "read.chunk.failed"
  42. ErrorReadCache = "read.cache.failed"
  43. ErrorReadStream = "read.stream.failed"
  44. // s3 handler
  45. ErrorCompletedNoSuchUpload = "errorCompletedNoSuchUpload"
  46. ErrorCompleteEntityTooSmall = "errorCompleteEntityTooSmall"
  47. ErrorCompletedPartEmpty = "errorCompletedPartEmpty"
  48. ErrorCompletedPartNumber = "errorCompletedPartNumber"
  49. ErrorCompletedPartNotFound = "errorCompletedPartNotFound"
  50. ErrorCompletedEtagInvalid = "errorCompletedEtagInvalid"
  51. ErrorCompletedEtagMismatch = "errorCompletedEtagMismatch"
  52. ErrorCompletedPartEntryMismatch = "errorCompletedPartEntryMismatch"
  53. )