metrics_names.go 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. ErrorSizeMismatchOffsetSize = "errorSizeMismatchOffsetSize"
  7. ErrorSizeMismatch = "errorSizeMismatch"
  8. ErrorCRC = "errorCRC"
  9. ErrorIndexOutOfRange = "errorIndexOutOfRange"
  10. // master topology
  11. ErrorWriteToLocalDisk = "errorWriteToLocalDisk"
  12. ErrorUnmarshalPairs = "errorUnmarshalPairs"
  13. ErrorWriteToReplicas = "errorWriteToReplicas"
  14. // master client
  15. FailedToKeepConnected = "failedToKeepConnected"
  16. FailedToSend = "failedToSend"
  17. FailedToReceive = "failedToReceive"
  18. RedirectedToleader = "redirectedToleader"
  19. OnPeerUpdate = "onPeerUpdate"
  20. Failed = "failed"
  21. // filer handler
  22. ErrorReadNotFound = "read.notfound"
  23. ErrorReadInternal = "read.internalerror"
  24. ErrorWriteEntry = "write.entry.failed"
  25. ErrorReadCache = "read.cache.failed"
  26. ErrorReadStream = "read.stream.failed"
  27. )