private void getTaskSchedulerStats(MetricsRecordBuilder rb) {
    rb.addGauge(SchedulerClusterNodeCount, clusterNodeCount.value())
        .addGauge(SchedulerExecutorsPerInstance, numExecutors.value())
        .addGauge(SchedulerMemoryPerInstance, memoryPerInstance.value())
        .addGauge(SchedulerCpuCoresPerInstance, cpuCoresPerInstance.value())
        .addGauge(SchedulerDisabledNodeCount, disabledNodeCount.value())
        .addCounter(SchedulerPendingTaskCount, pendingTasksCount.value())
        .addCounter(SchedulerSchedulableTaskCount, schedulableTasksCount.value())
        .addCounter(SchedulerRunningTaskCount, runningTasksCount.value())
        .addCounter(SchedulerSuccessfulTaskCount, successfulTasksCount.value())
        .addCounter(SchedulerPendingPreemptionTaskCount, pendingPreemptionTasksCount.value())
        .addCounter(SchedulerPreemptedTaskCount, preemptedTasksCount.value())
        .addCounter(SchedulerCompletedDagCount, completedDagcount.value());
  }
Metrics about the llap task scheduler.
llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/metrics/LlapTaskSchedulerMetrics.java