SabrinaZhaozyf commented on code in PR #14430: URL: https://github.com/apache/pinot/pull/14430#discussion_r1839098791
########## pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java: ########## @@ -707,6 +711,23 @@ public void start() _serverQueriesDisabledTracker = new ServerQueriesDisabledTracker(_helixClusterName, _instanceId, _helixManager, serverMetrics); _serverQueriesDisabledTracker.start(); + + // Add metrics for consumer directory usage + serverMetrics.setOrUpdateGlobalGauge(ServerGauge.CONSUMER_DIR_USAGE, () -> { + List<File> serverConsumerDirs = instanceDataManager.getConsumerDirPaths(); + final long[] totalSize = {0}; Review Comment: Changed to long. Previously used another lambda there that used the array! -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org