@Override
    public Map<MetricName, ? extends Metric> metrics() {
        return Collections.unmodifiableMap(this.metrics.metrics());
    }
Get the full set of internal metrics maintained by the producer.
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java