metrics_names.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. ChunkDoUploadRetry = "chunkDoUploadRetry"
  33. ChunkUploadRetry = "chunkUploadRetry"
  34. ChunkAssignRetry = "chunkAssignRetry"
  35. ErrorReadNotFound = "read.notfound"
  36. ErrorReadInternal = "read.internal.error"
  37. ErrorWriteEntry = "write.entry.failed"
  38. RepeatErrorUploadContent = "upload.content.repeat.failed"
  39. ErrorChunkAssign = "chunkAssign.failed"
  40. ErrorReadChunk = "read.chunk.failed"
  41. ErrorReadCache = "read.cache.failed"
  42. ErrorReadStream = "read.stream.failed"
  43. // s3 handler
  44. ErrorCompletedNoSuchUpload = "errorCompletedNoSuchUpload"
  45. ErrorCompleteEntityTooSmall = "errorCompleteEntityTooSmall"
  46. ErrorCompletedPartEmpty = "errorCompletedPartEmpty"
  47. ErrorCompletedPartNumber = "errorCompletedPartNumber"
  48. ErrorCompletedPartNotFound = "errorCompletedPartNotFound"
  49. ErrorCompletedEtagInvalid = "errorCompletedEtagInvalid"
  50. ErrorCompletedEtagMismatch = "errorCompletedEtagMismatch"
  51. ErrorCompletedPartEntryMismatch = "errorCompletedPartEntryMismatch"
  52. )