private void registerMetric(MetricRegistry registry, MetricDefine define, Metric metric) {
    MetricKey key = registry.register(define, ImmutableMap.of(GROUP_TAG, groupName), metric);
    registeredMetricKeys.add(key);
  }
Metrics manager for an optimizer group.
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/OptimizerGroupMetrics.java