public void config(MetricConfig config) {
        synchronized (lock) {
            this.config = config;
        }
    }
Set the metric config.
This is supposed to be used by server only.
@param config configuration for this metrics
clients/src/main/java/org/apache/kafka/common/metrics/KafkaMetric.java