Nitin, If you don't want to DIY there are already tools and solutions for monitoring Kafka, including consumer lag. Ours is mentioned here: http://blog.sematext.com/2013/10/16/announcement-spm-performance-monitoring-for-kafka/ Others have been mentioned on the list a few times before: http://search-hadoop.com/?q=monitor+lag&fc_project=Kafka
Otis -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/ On Tue, Dec 9, 2014 at 4:59 PM, nitin sharma <kumarsharma.ni...@gmail.com> wrote: > Hi Neha, Guozhang Wang > > My project requirement is to monitor Consumer Lag Mbean.. > > 1) According to me this MBean is exposed only at the Consumer side and not > on Broker server. This is because in my initial PoC, i had used > "kafka-consumer-perf-test.sh" and MBean exposed by this consumer had > "ConsumerLag" counter. > > 2) ConsumerLag value can not be in negative. it has to be either zero or > positive. is this a correct assumption? i found the following link on > internet where some one had got a negative value : > > > http://mail-archives.apache.org/mod_mbox/kafka-users/201410.mbox/%3cca+ttwkmbjhy_q+io3_7xsqxxfc6hhf7pzap5sfgtzd22stb...@mail.gmail.com%3E > > Regards, > Nitin Kumar Sharma. > > > On Tue, Dec 9, 2014 at 4:47 PM, Guozhang Wang <wangg...@gmail.com> wrote: > > > Nitin, > > > > You have found the place :) Just send an email to users@ mailing list is > > fine. > > > > Guozhang > > > > On Tue, Dec 9, 2014 at 1:26 PM, nitin sharma < > kumarsharma.ni...@gmail.com> > > wrote: > > > > > HI, > > > I need some help related to Kafka Consumer Lag monitoring.. Kindly let > me > > > know how can i post my query to the forum. > > > > > > Regards, > > > Nitin Kumar Sharma. > > > > > > > > > > > -- > > -- Guozhang > > >