Yes, that works.

2015-01-01 8:07 GMT+08:00 Jun Rao <j...@confluent.io>:

> Not exactly sure, but you may have to escape the quotes.
>
> Thanks,
>
> Jun
>
> On Wed, Dec 24, 2014 at 3:29 AM, 马哲超 <mazhechaomaill...@gmail.com> wrote:
>
> > Hello,
> >
> > I'm using cmdline-jmxclient to get Kafka JMX metrics values. When I run
> the
> > command below
> >
> > java -jar cmdline-jmxclient.jar - KAFKA_HOST:JMX_PORT
> >
> > it shows all registered bean, including Kafka JMX metrics bean
> > like
> > "kafka.server":name="AllTopicsBytesOutPerSec",type="BrokerTopicMetrics".
> >
> > But when I run the command below
> >
> > java -jar cmdline-jmxclient.jar
> > - KAFKA_HOST:JMX_PORT
> > "kafka.server":name="AllTopicsBytesOutPerSec",type="BrokerTopicMetrics"
> >
> > I get an error which says
> > "kafka.server":name="AllTopicsBytesOutPerSec",type="BrokerTopicMetrics"
> is
> > not a registered bean.
> >
> > So what's the problem when I get  Kafka JMX metrics values by using
> > cmdline-jmxclient?
> >
> > However, everything is OK when I get Java JMX metrics
> > like java.lang:type=ClassLoading via cmdline-jmxclient. Also, I can get
> > Kafka JMX metrics values via Jconsole.
> >
> > Anyone can help me?
> >
>

Reply via email to