You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Devang Shah <de...@gmail.com> on 2014/10/03 14:32:23 UTC
Problem determining consumer lag via jmx
Refering to the monitoring secton available on the kafka doc website I am
unable to see kafka.consumer bean on the jconsole. Is this bean not exposed
via jconsole ?
"kafka.consumer":name="([-.\w]+)-MaxLag",type="ConsumerFetcherManager"
I am using kafka-0.8.1.1.
Also when I try to connect via a java program to this jmx bean/object I get
an exception as - invalid sequence \w.
Any pointers will be helpful ?
Thanks and Regards,
Devang
Re: Problem determining consumer lag via jmx
Posted by Jun Rao <ju...@gmail.com>.
The jmx is only available in the high level consumer. If you are using
SimpleConsumer, you have to calculate this yourself (hw from fetchresponse
- fetch offset).
Thanks,
Jun
On Fri, Oct 3, 2014 at 5:32 AM, Devang Shah <de...@gmail.com> wrote:
> Refering to the monitoring secton available on the kafka doc website I am
> unable to see kafka.consumer bean on the jconsole. Is this bean not exposed
> via jconsole ?
>
> "kafka.consumer":name="([-.\w]+)-MaxLag",type="ConsumerFetcherManager"
>
> I am using kafka-0.8.1.1.
>
> Also when I try to connect via a java program to this jmx bean/object I get
> an exception as - invalid sequence \w.
>
> Any pointers will be helpful ?
>
> Thanks and Regards,
> Devang
>