private String getCounterFromDagCounter(final String desiredCounter) {
    return desiredCounter.substring("DAG_".length());
  }
TezJobMonitor keeps track of a tez job while it's being executed. It will
print status to the console and retrieve final status of the job after
completion.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/monitoring/TezJobMonitor.java