private KafkaMbean removeAttribute(KafkaMetric metric, String mBeanName) {
        MetricName metricName = metric.metricName();
        KafkaMbean mbean = this.mbeans.get(mBeanName);
        if (mbean != null)
            mbean.removeAttribute(metricName.name());
        return mbean;
    }
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