An exercise in composing docker containers from the Confluent platform.
docker-compose up
echo "hello world" | kafkacat -b localhost:9092 -P -t hello-stream
kafkacat -b localhost:9092 -C -t hello-stream -o beginning -e
To view the JMX metrics of each component, query the Jolokia proxy
- broker:
curl -XPOST http://localhost:8080/jolokia/read -d '{"target": {"url": "service:jmx:rmi:///jndi/rmi://broker:9010/jmxrmi"}, "type": "search", "mbean": "*:*"}'
- schema-registry:
curl -XPOST http://localhost:8080/jolokia/read -d '{"target": {"url": "service:jmx:rmi:///jndi/rmi://schema-registry:9010/jmxrmi"}, "type": "search", "mbean": "*:*"}'
- rest:
curl -XPOST http://localhost:8080/jolokia/read -d '{"target": {"url": "service:jmx:rmi:///jndi/rmi://rest:9010/jmxrmi"}, "type": "search", "mbean": "*:*"}'
- connect:
curl -XPOST http://localhost:8080/jolokia/read -d '{"target": {"url": "service:jmx:rmi:///jndi/rmi://connect:9010/jmxrmi"}, "type": "search", "mbean": "*:*"}'