nizhikov commented on a change in pull request #8150:
URL: https://github.com/apache/ignite/pull/8150#discussion_r470585340



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cluster/ClusterProcessor.java
##########
@@ -607,6 +610,33 @@ private Boolean findLastFlag(Collection<Serializable> 
vals) {
                 U.error(log, "Failed to register MBean for cluster: ", e);
             }
         }
+
+        MetricRegistry reg = ctx.metric().registry(CLUSTER_METRICS);
+
+        reg.register("TopologyVersion",

Review comment:
       Can we use this metric and all below inside `ClusterMetricsMXBeanImpl` 
to keep single method to calculate metric value.




----------------------------------------------------------------
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]


Reply via email to