Yolean/kubernetes-kafka

Run JMX exporter as a Java Agent (how to?)

sidps opened this issue · 1 comments

sidps commented

It seems like there's significant difference when running the JMX exporter as a Java Agent and as an HTTP server, and running as HTTP server is not recommended. prometheus/jmx_exporter#111

Is it possible to run the exporter as a Java Agent with the current setup?

The only approach we've used is https://github.com/Yolean/kubernetes-kafka/tree/master/prometheus. It's been painful, in particular hard to make performant enough for scraping every 30s. I'd be very interested in an agent setup. Should be possible to add a .jar the way https://github.com/Yolean/kubernetes-kafka/tree/master/cruise-control does it (#218) and then add a command line argument using a diff or Kustomize (like some variants do).