Hi, We use our own SPM <http://sematext.com/spm/> to monitor our Kafka brokers, producers, and consumers (and ZK) and have alerts and anomaly detection on several key Kafka and ZK metrics. When things break around ZK and/or Kafka..... we find out pretty quickly because a lot of metrics suddenly spike or drop :) In other words, if I understand your question correctly, I'd suggest using a monitoring tool to detect things like unavailable Kafka brokers or ZK nodes instead of manually watching connections with a Kafka client...
Otis -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/ On Thu, Oct 16, 2014 at 6:09 AM, Alex Objelean <alex.objel...@gmail.com> wrote: > Hi, > > I'm trying to monitor the kafka connection on the consumer side. In other > words, if the broker cluster is unavailable (or zookeer dies), I would like > to know about that problem as soon as possible. > Unfortunately, I didn't find anything useful to achieve that when using > kafka library. > Are there any suggestions about how to fix this issue? > > Thanks, > Alex >