private void notifyReporterOnRemove(IMetric metric, MetricInfo metricInfo) {
    // if the reporter type is JMX, unregister the new metric
    Optional.ofNullable(bindJmxReporter)
        .ifPresent(x -> bindJmxReporter.unregisterMetric(metric, metricInfo));
  }
Notify IoTDB JmxReporter to remove metric in JMX

@param metric the removed metric
@param metricInfo the removed metric info
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/AbstractMetricManager.java