AMBARI-3818. Define metrics with stack definition. (ncole)