This is the 2nd dependent jira of YARN-8059.
As updating the metrics is an independent step from handling preemption, this jira only deals with the queue metrics update of custom resources.
The following metrics should be updated:
- allocated resources
- available resources
- pending resources
- reserved resources
- aggregate seconds preempted