public void copy(MetricConfig newMetricConfig) {
    metricReporterList = newMetricConfig.getMetricReporterList();
    metricLevel = newMetricConfig.getMetricLevel();
    asyncCollectPeriodInSecond = newMetricConfig.getAsyncCollectPeriodInSecond();
    prometheusReporterPort = newMetricConfig.getPrometheusReporterPort();
    prometheusReporterUsername = newMetricConfig.getPrometheusReporterUsername();
    prometheusReporterPassword = newMetricConfig.getPrometheusReporterPassword();
    internalReporterType = newMetricConfig.getInternalReportType();

    iotdbReporterConfig.copy(newMetricConfig.getIoTDBReporterConfig());
  }
Copy properties from another metric config.
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java