mesos / kafka

Apache Kafka on Apache Mesos
Apache License 2.0
414 stars 140 forks source link

Add javaagent to brokers #205

Open eli-jordan opened 8 years ago

eli-jordan commented 8 years ago

Is it possible to add a java agent to the JVM that is launched for the brokers? I noticed that you can specify the --jvm-options parameter when creating the broker with the CLI and API. However, I'm not sure how to make the jar file for the agent available to the executor when the broker is started.

Is it possible to send a custom zip of kafka with additional data present to the executor?

The reason I want to do this is to report the broker JMX metrics to NewRelic, which requires a java agent to be set, and a config file to be present.