@Override
  public Map<MetricKey, Metric> getMetrics() {
    return Collections.unmodifiableMap(registeredMetrics);
  }
Remove a metric

@param key registered metric key
amoro-ams/src/main/java/org/apache/amoro/server/metrics/MetricRegistry.java