Track allocated resources via metrics

Change-Id: Ib0e303038717a8614ac571e5735ba7f80aa312dd
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2556
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins
(cherry picked from commit 04292f41a08d4ac6d9dc2488e4074a5cd006cf8f)
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2879