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

the resourcemanager is run in HA mode.
it's a final variable so must be set outside.