metrics_names.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // master topology
  13. ErrorWriteToLocalDisk = "errorWriteToLocalDisk"
  14. ErrorUnmarshalPairs = "errorUnmarshalPairs"
  15. ErrorWriteToReplicas = "errorWriteToReplicas"
  16. // master client
  17. FailedToKeepConnected = "failedToKeepConnected"
  18. FailedToSend = "failedToSend"
  19. FailedToReceive = "failedToReceive"
  20. RedirectedToLeader = "redirectedToLeader"
  21. OnPeerUpdate = "onPeerUpdate"
  22. Failed = "failed"
  23. // filer handler
  24. DirList = "dirList"
  25. ContentSaveToFiler = "contentSaveToFiler"
  26. AutoChunk = "autoChunk"
  27. ChunkProxy = "chunkProxy"
  28. ChunkAssign = "chunkAssign"
  29. ChunkUpload = "chunkUpload"
  30. ChunkDoUploadRetry = "chunkDoUploadRetry"
  31. ChunkUploadRetry = "chunkUploadRetry"
  32. ChunkAssignRetry = "chunkAssignRetry"
  33. ErrorReadNotFound = "read.notfound"
  34. ErrorReadInternal = "read.internal.error"
  35. ErrorWriteEntry = "write.entry.failed"
  36. RepeatErrorUploadContent = "upload.content.repeat.failed"
  37. ErrorReadCache = "read.cache.failed"
  38. ErrorReadStream = "read.stream.failed"
  39. )