Re: Java API to read metrics via JMX

2018-08-13 Thread Diego Parra
Hi, you can try with: https://github.com/Segence/kamon-jmx-collector that uses Kamon underlying and allow report metrics to several backends like : Prometheus, InfluxDB, Datadog. Cheers, Diego. On Sun, Aug 12, 2018 at 10:16 AM Matt Farmer wrote: > I

Re: Java API to read metrics via JMX

2018-08-12 Thread Matt Farmer
I will also +1 the JMX Prometheus exporter. It's capable of running as a -javaagent so it's really easy to get up and running. And we happen to use Prometheus anyways so it's pretty convenient for us. Link: https://github.com/prometheus/jmx_exporter On Fri, Aug 10, 2018 at 1:55 AM Ishwor Gurung

Re: Java API to read metrics via JMX

2018-08-09 Thread Ishwor Gurung
I don’t know of Java-based solution but I have successfully used: Kafka JMX Exporter for Prometheus <———> Kafka to collect JMX metrics from Kafka. > On 10 Aug 2018, at 11:10 am, Raghav wrote: > > Hi > > I found > https://github.com/kafka-dev/kafka/blob/master/perf/src/main/java/kafka/perf/jmx

Re: Java API to read metrics via JMX

2018-08-09 Thread Raghav
Hi I found https://github.com/kafka-dev/kafka/blob/master/perf/src/main/java/kafka/perf/jmx/BrokerJmxClient.java code written by Neha to pull JMX metrics via MBean. In here: https://github.com/kafka-dev/kafka/blob/master/perf/src/main/java/kafka/perf/jmx/BrokerJmxClient.java#L37 there is a mentio

RE: [External] Re: Java API to read metrics via JMX

2018-08-09 Thread Tauzell, Dave
] 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 < bori

Re: Java API to read metrics via JMX

2018-08-08 Thread Raghav
Thanks Boris. Is there a sample implementation in Java ? thanks. R 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 In

Re: Java API to read metrics via JMX

2018-08-08 Thread Boris Lublinsky
Yea, this is just a simple snippet of how to do this.Boker with JMX is how to get broker from zk BrokerWithJMX.scala Description: Binary data Boris LublinskyFDP Architectboris.lublin...@lightbend.comhttps://www.lightbend.com/ On Aug 8, 2018, at 9:18 PM, Ted Yu wrote:Boris:

Re: Java API to read metrics via JMX

2018-08-08 Thread Ted Yu
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 d

Re: Java API to read metrics via JMX

2018-08-08 Thread Boris Lublinsky
Its actually quite simple, unfortunately you have to read, and then write to TSDB.Enclosed is an example doing this and dumping to InfluxDB JMXCollector.scala Description: Binary data Boris LublinskyFDP Architectboris.lublin...@lightbend.comhttps://www.lightbend.com/ On Aug 8, 2018, at 8:46 PM,

Java API to read metrics via JMX

2018-08-08 Thread Raghav
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