pgandhi999 commented on a change in pull request #22498: [SPARK-25642] : Adding
two new metrics to record the number of registered connections as well as the
number of active connections to YARN Shuffle Service
URL: https://github.com/apache/spark/pull/22498#discussion_r243588130
##########
File path:
common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleServiceMetrics.java
##########
@@ -107,6 +107,11 @@ public static void collectMetric(
throw new IllegalStateException(
"Not supported class type of metric[" + name + "] for value "
+ gaugeValue);
}
+ } else if (metric instanceof Counter) {
+ Counter c = (Counter) metric;
+ long counterValue = c.getCount();
+ metricsRecordBuilder.addGauge(new ShuffleServiceMetricsInfo(name,
"Number of " +
+ "connections to shuffle service " + name), counterValue);
Review comment:
Done. Thank you.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]