@Override
  public void getMetrics(MetricsCollector collector, boolean b) {
    MetricsRecordBuilder rb = collector.addRecord(LlapDaemonJVMMetrics)
        .setContext("jvm")
        .tag(ProcessName, MetricsUtils.METRICS_PROCESS_NAME + "(PID: " + daemonPid + ")")
        .tag(SessionId, sessionId);
    getJvmMetrics(rb);
  }
Class to report LLAP Daemon's JVM metrics to the hadoop metrics2 API.
llap-server/src/java/org/apache/hadoop/hive/llap/metrics/LlapDaemonJvmMetrics.java