nizhikov commented on a change in pull request #6814: IGNITE-12108 TCP 
Communication Metrics ported to a new framework.
URL: https://github.com/apache/ignite/pull/6814#discussion_r349582697
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
 ##########
 @@ -403,6 +402,49 @@
     /** Handshake wait message type. */
     public static final short HANDSHAKE_WAIT_MSG_TYPE = -28;
 
+    /** Communication metrics group name. */
+    public static final String COMMUNICATION_METRICS_GROUP_NAME = 
MetricUtils.metricName("communication", "tcp");
+
+    /** */
+    public static final String SENT_MESSAGES_METRIC_NAME = "sentMessagesCount";
+
+    /** */
+    public static final String SENT_MESSAGES_METRIC_DESC = "Total number of 
messages sent by current node";
+
+    /** */
+    public static final String RECEIVED_MESSAGES_METRIC_NAME = 
"receivedMessagesCount";
+
+    /** */
+    public static final String RECEIVED_MESSAGES_METRIC_DESC = "Total number 
of messages received by current node";
+
+    /** */
+    public static final String SENT_MESSAGES_BY_TYPE_METRIC_DESC = "Total 
number of messages with given type sent by current node";
+
+    /** */
+    public static final String RECEIVED_MESSAGES_BY_TYPE_METRIC_DESC = "Total 
number of messages with given type received by current node";
+
+    /** */
+    public static final String SENT_MESSAGES_BY_NODE_ID_METRIC_NAME = 
"sentMessagesToNode";
+
+    /** */
+    public static final String SENT_MESSAGES_BY_NODE_ID_METRIC_DESC = "Total 
number of messages sent by current node to the given node";
+
+    /** */
+    public static final String RECEIVED_MESSAGES_BY_NODE_ID_METRIC_NAME = 
"receivedMessagesFromNode";
+
+    /** */
+    public static final String RECEIVED_MESSAGES_BY_NODE_ID_METRIC_DESC = 
"Total number of messages received by current node from the given node";
+
+    /** */
+    public static String sentMessagesByTypeMetricName(Short directType) {
 
 Review comment:
   Let's move this method to `TcpCommunicationMetricsListener`.
   As I can see it used only there.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to