AMBARI-4685. API doesn't return NN or RM metrics with customized port (ncole)