sreejasahithi commented on code in PR #9400:
URL: https://github.com/apache/ozone/pull/9400#discussion_r2652210099
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/safemode/SafeModeMetrics.java:
##########
@@ -52,6 +53,12 @@ public class SafeModeMetrics {
private @Metric MutableCounterLong
currentPipelinesWithAtleastOneReplicaReportedCount;
+ @Metric("Metric will be set to 1 if SCM is in SafeMode, otherwise 0")
+ private MutableGaugeInt scmInSafeMode;
+
+ @Metric private MutableGaugeLong numRequiredDatanodesThreshold;
+ @Metric private MutableCounterLong currentRegisteredDatanodesCount;
Review Comment:
`numNodeReportProcessed` metric increments on every periodic node report
received, while `currentRegisteredDatanodesCount` metric increments once per
unique datanode registration so it is not exactly a duplicate.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]