you can use kafka java metrics to monitor some events about kafka healthy. as to kafka listen port, just check it.
2016-05-30 13:04 GMT+08:00 Joe San <codeintheo...@gmail.com>: > Is there any such API on the consumer or the producer that I can use to > check for the underlying connection to the kafka brokers from my producer? > I need to ping Kafka broker every minute and check if there is a connection > available? Any suggestions? >