JMX to Prometheus exporter: a collector that can configurably scrape and expose mBeans of a JMX target.
- JMX enabled for your Kafka instance
- JMX Prometheus Javaagent 1.0
If there is a new version of the JMX Prometheus Exporter available just run this command in docker path and tag the current version, e.g. 0.1.0
:
$ make version=0.1.0
Variable | Description |
---|---|
KAFKA_HOSTPORT |
Kafka instance to connect, e.g. <externalIP>:<JMXPort> (requires JMX enabled). |
Run via the Docker command:
$ docker run -p 5556:5556 -e "KAFKA_HOSTPORT=<externalIP>:<JMXPort>" fabianbaier/docker_kafka_prometheus_exporter:0.1.0