@Override
  public void unbindFrom(AbstractMetricService metricService) {
    try {
      synchronized (metricsTurboFilters) {
        for (MetricsTurboFilter addMetricsTurboFilter : metricsTurboFilters.values()) {
          loggerContext.getTurboFilterList().remove(addMetricsTurboFilter);
        }
        metricService.remove(
            MetricType.COUNTER, SystemMetric.LOGBACK_EVENTS.toString(), LEVEL, "error");
        metricService.remove(
            MetricType.COUNTER, SystemMetric.LOGBACK_EVENTS.toString(), LEVEL, "warn");
        metricService.remove(
            MetricType.COUNTER, SystemMetric.LOGBACK_EVENTS.toString(), LEVEL, "info");
        metricService.remove(
            MetricType.COUNTER, SystemMetric.LOGBACK_EVENTS.toString(), LEVEL, "debug");
        metricService.remove(
            MetricType.COUNTER, SystemMetric.LOGBACK_EVENTS.toString(), LEVEL, "trace");
      }
    } catch (Exception e) {
      logger.warn("Failed to remove logBackMetrics, because ", e);
    }
  }
This file is modified from io.micrometer.core.instrument.binder.logging.LogbackMetrics
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/logback/LogbackMetrics.java