YARN-10136. [Router] : Application metrics are hardcode as N/A in UI. Contributed by Bilwa S T.

This commit is contained in:
Brahma Reddy Battula 2020-02-14 16:50:29 +05:30
parent 954930e9d9
commit 20add89718
1 changed files with 6 additions and 6 deletions

View File

@ -58,12 +58,12 @@ public class AboutBlock extends HtmlBlock {
YarnConfiguration.DEFAULT_FEDERATION_ENABLED); YarnConfiguration.DEFAULT_FEDERATION_ENABLED);
info("Cluster Status"). info("Cluster Status").
__("Federation Enabled", isEnabled). __("Federation Enabled", isEnabled).
__("Applications Submitted", "N/A"). __("Applications Submitted", metrics.getAppsSubmitted()).
__("Applications Pending", "N/A"). __("Applications Pending", metrics.getAppsPending()).
__("Applications Running", "N/A"). __("Applications Running", metrics.getAppsRunning()).
__("Applications Failed", "N/A"). __("Applications Failed", metrics.getAppsFailed()).
__("Applications Killed", "N/A"). __("Applications Killed", metrics.getAppsKilled()).
__("Applications Completed", "N/A"). __("Applications Completed", metrics.getAppsCompleted()).
__("Containers Allocated", metrics.getContainersAllocated()). __("Containers Allocated", metrics.getContainersAllocated()).
__("Containers Reserved", metrics.getReservedContainers()). __("Containers Reserved", metrics.getReservedContainers()).
__("Containers Pending", metrics.getPendingContainers()). __("Containers Pending", metrics.getPendingContainers()).