You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Priya <pr...@yahoo.com> on 2014/05/01 21:39:04 UTC

How to enable JMX metrics in Kafka 0.8.0

I am integrating the Kafka JMX metrics into our own system. I am able to view the Kafka metrics via JConsole. However, pulling the metrics into my own system, using my JSON files is failing. It is unable to find the mbeans ("javax.management.InstanceNotFoundException: kafka.server:type=BrokerTopicMetrics,name=AllTopicsMessagesInPerSec"). 
In JConsole, "mxbean" is set to false for this, and all other Kafka metrics in the MBeans tab. I suspect that this is the reason that pulling these metrics via MBeans is failing. (I see that mxbean is set to true for some other system metrics, like java.util.logging)
Is there some configuration that I need to do in my Kafka server to enable this behavior?

I looked into the documentation, but did not find a way to do this.
Thanks,
Priya

Re: How to enable JMX metrics in Kafka 0.8.0

Posted by Jun Rao <ju...@gmail.com>.
Those mbean names are a bit tricky. They are created by metrics-code and
have quotes in them. So, you will need to be a bit careful.

Thanks,

Jun


On Thu, May 1, 2014 at 12:39 PM, Priya <pr...@yahoo.com> wrote:

> I am integrating the Kafka JMX metrics into our own system. I am able to
> view the Kafka metrics via JConsole. However, pulling the metrics into my
> own system, using my JSON files is failing. It is unable to find the mbeans
> ("javax.management.InstanceNotFoundException:
> kafka.server:type=BrokerTopicMetrics,name=AllTopicsMessagesInPerSec").
> In JConsole, "mxbean" is set to false for this, and all other Kafka
> metrics in the MBeans tab. I suspect that this is the reason that pulling
> these metrics via MBeans is failing. (I see that mxbean is set to true for
> some other system metrics, like java.util.logging)
> Is there some configuration that I need to do in my Kafka server to enable
> this behavior?
>
> I looked into the documentation, but did not find a way to do this.
> Thanks,
> Priya