sandeep318kumar commented on code in PR #3949: URL: https://github.com/apache/ambari/pull/3949#discussion_r2054751927
########## ambari-server/src/main/java/org/apache/ambari/server/metrics/system/impl/MetricsConfiguration.java: ########## @@ -124,4 +124,30 @@ public static MetricsConfiguration getSubsetConfiguration(MetricsConfiguration m return new MetricsConfiguration(subsetProperties); } + + /** + * For enabling stompStats Metrics, append 'stats' in metric.sources. + * @return true if StompStatsMetricsSource is configured, false otherwise. + */ + public static boolean isStompStatMetricsConfigured() { + MetricsConfiguration configuration = getMetricsConfiguration(); + String commaSeparatedSources = configuration.getProperty("metric.sources"); Review Comment: I have handled null check for commaSeparatedSources. If stomp stats is not configured then it will return false. -- 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: dev-unsubscr...@ambari.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For additional commands, e-mail: dev-h...@ambari.apache.org