public void removePartitionReplicas(List<RemoteReplicaInfo> remoteReplicaInfos) {
    for (RemoteReplicaInfo rinfo : remoteReplicaInfos) {
      long pid = rinfo.getReplicaId().getPartitionId().getId();
      String rid = rinfo.getReplicaId().getDataNodeId().getHostname();
      if (metricMap.containsKey(pid)) {
        metricMap.get(pid).removePartitionReplica(rid);
      }
    }
  }
Thread-safe singleton initializer
@param metrics
@return collector instance
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/AzureStorageContainerMetricsCollector.java