public void setMetrics(final MetricsConfig metrics) {
        this.metrics = metrics;
    }
Sets metrics.

@param metrics the metrics
shenyu-common/src/main/java/org/apache/shenyu/common/config/ShenyuConfig.java