Yolean / kubernetes-kafka

Kafka cluster as Kubernetes StatefulSet, plain manifests and config
Apache License 2.0
1.83k stars 738 forks source link

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

Open sidps opened 4 years ago

sidps commented 4 years ago

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. https://github.com/prometheus/jmx_exporter/issues/111

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

solsson commented 4 years ago

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 (https://github.com/Yolean/kubernetes-kafka/pull/218) and then add a command line argument using a diff or Kustomize (like some variants do).