CDAP-875 update cluster metrics reporter to handle the case when

the resourcemanager is run in HA mode.