public void unregister() {
    registeredMetricKeys.forEach(registry::unregister);
    registeredMetricKeys.clear();
  }
Metrics manager for an optimizer group.
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/OptimizerGroupMetrics.java