public void removeMetric(String name) {
    helper.removeObjectName(name);
    metricsMap.remove(name);
  }
Removes metric by name
@param name name of the metric to remove
hbase-hadoop-compat/src/main/java/org/apache/hadoop/metrics2/lib/DynamicMetricsRegistry.java