@Override
  public void bindTo(AbstractMetricService metricService) {
    ClassLoadingMXBean classLoadingBean = ManagementFactory.getClassLoadingMXBean();
    metricService.createAutoGauge(
        SystemMetric.JVM_CLASSES_LOADED_CLASSES.toString(),
        MetricLevel.IMPORTANT,
        classLoadingBean,
        ClassLoadingMXBean::getLoadedClassCount);
    metricService.createAutoGauge(
        SystemMetric.JVM_CLASSES_UNLOADED_CLASSES.toString(),
        MetricLevel.IMPORTANT,
        classLoadingBean,
        ClassLoadingMXBean::getUnloadedClassCount);
  }
This file is modified from io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmClassLoaderMetrics.java