Skip to content

Based on wurstmeister's kafka-docker, with Prometheus JMX Exporter included

Notifications You must be signed in to change notification settings

argussecurity/docker-kafka-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

docker-kafka

Based on wurstmeister/kafka-docker,

with Prometheus.io's JMX Exporter added,

so you can use it as a javaagent, to export metrics to Prometheus.

Notes

Tag from wurstmeister/kafka is missing? Send a pull request and we'll trigger a build.

Usage

To use the Prometheus JMX Exporter as a java agent and export the metrics, you should export environment variable

KAFKA_OPTS=-javaagent:/usr/app/jmx_prometheus_javaagent.jar=<LISTEN_PORT>:<PATH_TO_CONFIG_FILE> (see JMX Exporter's doc)

PATH_TO_CONFIG_FILE can be set to /usr/app/prometheus-config.yml to use JMX Exporter's suggested default configurations.

Example

docker run -p 9092:9092 -p 8080:8080 -e "KAFKA_OPTS=-javaagent:/usr/app/jmx_prometheus_javaagent.jar=8080:/usr/app/prometheus-config.yml" argussecurity/kafka:0.9.0.1

About

Based on wurstmeister's kafka-docker, with Prometheus JMX Exporter included

Resources

Stars

Watchers

Forks

Packages

No packages published