As we have Kafka server metrics, similarly there are metrics for the producer so that we can track what's happening with it.
Get the Kafka cluster up-and-running. You are now all set to start producing data to it.
>JMX_PORT=10102 bin/kafka-console-producer.sh --broker-list localhost:9092 --topic mytesttopic
10102on your machine using the jconsole application as mentioned in the previous topic. You can see all the metrics in the following screenshot.