mon_proto.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import "library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto";
  2. package NBus;
  3. option java_package = "ru.yandex.messagebus.monitoring.proto";
  4. message TMessageStatusRecord {
  5. enum EMessageStatus {
  6. MESSAGE_OK = 0;
  7. MESSAGE_CONNECT_FAILED = 1;
  8. MESSAGE_TIMEOUT = 2;
  9. MESSAGE_SERVICE_UNKNOWN = 3;
  10. MESSAGE_BUSY = 4;
  11. MESSAGE_UNKNOWN = 5;
  12. MESSAGE_DESERIALIZE_ERROR = 6;
  13. MESSAGE_HEADER_CORRUPTED = 7;
  14. MESSAGE_DECOMPRESS_ERROR = 8;
  15. MESSAGE_MESSAGE_TOO_LARGE = 9;
  16. MESSAGE_REPLY_FAILED = 10;
  17. MESSAGE_DELIVERY_FAILED = 11;
  18. MESSAGE_INVALID_VERSION = 12;
  19. MESSAGE_SERVICE_TOOMANY = 13;
  20. MESSAGE_SHUTDOWN = 14;
  21. MESSAGE_DONT_ASK = 15;
  22. }
  23. optional EMessageStatus Status = 1;
  24. optional uint32 Count = 2;
  25. }
  26. message TConnectionStatusMonRecord {
  27. optional uint32 SendQueueSize = 1 [ (NMonProto.Metric).Type = GAUGE ];
  28. // client only
  29. optional uint32 AckMessagesSize = 2 [ (NMonProto.Metric).Type = GAUGE ];
  30. optional uint32 ErrorCount = 3 [ (NMonProto.Metric).Type = RATE ];
  31. optional uint64 WriteBytes = 10 [ (NMonProto.Metric).Type = RATE ];
  32. optional uint64 WriteBytesCompressed = 11;
  33. optional uint64 WriteMessages = 12 [ (NMonProto.Metric).Type = RATE ];
  34. optional uint64 WriteSyscalls = 13;
  35. optional uint64 WriteActs = 14;
  36. optional uint64 ReadBytes = 20 [ (NMonProto.Metric).Type = RATE ];
  37. optional uint64 ReadBytesCompressed = 21;
  38. optional uint64 ReadMessages = 22 [ (NMonProto.Metric).Type = RATE ];
  39. optional uint64 ReadSyscalls = 23;
  40. optional uint64 ReadActs = 24;
  41. repeated TMessageStatusRecord ErrorCountByStatus = 25;
  42. }
  43. message TSessionStatusMonRecord {
  44. optional uint32 InFlight = 1 [ (NMonProto.Metric).Type = GAUGE ];
  45. optional uint32 ConnectionCount = 2 [ (NMonProto.Metric).Type = GAUGE ];
  46. optional uint32 ConnectCount = 3 [ (NMonProto.Metric).Type = RATE ];
  47. }