@Override
    public void metricChange(KafkaMetric metric) {
        synchronized (LOCK) {
            String mbeanName = addAttribute(metric);
            if (mbeanName != null && mbeanPredicate.test(mbeanName)) {
                reregister(mbeans.get(mbeanName));
            }
        }
    }
Create a JMX reporter that prefixes all metrics with the given string.
 @deprecated Since 2.6.0. Use {@link JmxReporter#JmxReporter()}
 Initialize JmxReporter with {@link JmxReporter#contextChange(MetricsContext)}
 Populate prefix by adding _namespace/prefix key value pair to {@link MetricsContext}
clients/src/main/java/org/apache/kafka/common/metrics/JmxReporter.java