Hi Monika, For Kafka-0.8.0 you will have to register beans with JmxTransServer like this:
Server kafkaJMXServer = new Server("locahost","9999"); Query byteInQuery = new Query(); * byteInQuery.setObj("\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsBytesInPerSec\""); * byteInQuery.addAttr("Count"); byteInQuery.addAttr("MeanRate"); kafkaJMXServer.addQuery(byteInQuery); Hope this will help !! On Thu, Sep 5, 2013 at 9:06 AM, Jun Rao <jun...@gmail.com> wrote: > Those quotes are added by the metrics package that we use. > > Thanks, > > Jun > > > On Wed, Sep 4, 2013 at 7:34 AM, Rajasekar Elango <rela...@salesforce.com > >wrote: > > > We have the same problem, it doesn't work with restful JMX console > > jiminix<https://code.google.com/p/jminix/>. > > Is it possible to change kafka to expose mbeans without quotes? > > > > Thanks, > > Raja. > > > > > > On Wed, Sep 4, 2013 at 10:30 AM, Neha Narkhede <neha.narkh...@gmail.com > > >wrote: > > > > > I had the same problem and could not use jmxterm to inspect jmx beans > due > > > to this issue. But we tried escaping the quotes and it works with our > > > internal monitoring system as well as JmxTool that ships with Kafka. > > > > > > Thanks, > > > Neha > > > On Sep 4, 2013 7:16 AM, "Monika Garg" <monika.g...@impetus.co.in> > wrote: > > > > > > > Hi, > > > > > > > > Kafka-0.8.0-beta1-src is having doublequotes in the start of Objects > > name > > > > obtained from jConsole.Due to this I am not able to use jmxTrans to > > > monitor > > > > my kafka-0.8.0 cluster. > > > > > > > > Please help in solving the issue. > > > > > > > > > > > > > > > > Regards > > > > Monika Garg > > > > Associate Software Engineer > > > > Impetus Infotech (India) Pvt. Ltd. > > > > D-40, Sector-59, Noida - 201307, UP > > > > (O) +91-120-4363300 x 2858 > > > > (M) +91-8588075977 > > > > www.impetus.com<http://www.impetus.com/> > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > NOTE: This message may contain information that is confidential, > > > > proprietary, privileged or otherwise protected by law. The message is > > > > intended solely for the named addressee. If received in error, please > > > > destroy and notify the sender. Any use of this email is prohibited > when > > > > received in error. Impetus does not represent, warrant and/or > > guarantee, > > > > that the integrity of this communication has been maintained nor that > > the > > > > communication is free of errors, virus, interception or interference. > > > > > > > > > > > > > > > -- > > Thanks, > > Raja. > > > -- *Thanks & Regards* *Hanish Bansal*