@Override
    public void destroy() {
        this.isStarted.compareAndSet(true, false);
        Optional.ofNullable(metricsService).ifPresent(MetricsService::stop);
    }
Instantiates a new Metrics runner.

@param config the config
shenyu-spring-boot-starter/shenyu-spring-boot-starter-plugin/shenyu-spring-boot-starter-plugin-metrics/src/main/java/org/apache/shenyu/springboot/starter/plugin/metrics/boot/MetricsRunner.java