We use Jolokia (which has a java agent you can load with kafka to expose metrics via HTTP) and Influx/Telegraf which has support for Jolokia. There is a fair bit of configuration but it can be done without any coding.
-Dave -----Original Message----- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Wednesday, August 8, 2018 9:18 PM To: users@kafka.apache.org Subject: [External] Re: Java API to read metrics via JMX Boris: BrokerWithJMX is referenced but I didn't find the class source after a brief search. FYI On Wed, Aug 8, 2018 at 7:10 PM Boris Lublinsky < boris.lublin...@lightbend.com> wrote: > Its actually quite simple, unfortunately you have to read, and then > write to TSDB. > Enclosed is an example doing this and dumping to InfluxDB > > > Boris Lublinsky > FDP Architect > boris.lublin...@lightbend.com > https://www.lightbend.com/ > > On Aug 8, 2018, at 8:46 PM, Raghav <raghavas...@gmail.com> wrote: > > Hi > > Is there any Java API available so that I can enable our Kafka > cluster's JMX port, and consume metrics via JMX api, and dump to a > time series database. > > I checked out jmxtrans, but currently it does not dump to TSDB (time > series database). > > Thanks. > > R > > > This e-mail and any files transmitted with it are confidential, may contain sensitive information, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender by reply e-mail immediately and destroy all copies of the e-mail and any attachments.