Skip to content

mordp1/lab_kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lab_kafka - Virtualbox + Vagrant + Ansible + Minikube + Kafka + Prometheus + Grafana + Kafdrop + Producer and Consumer Python

Minimum Requirements :

  • Vagrant
  • Virtualbox
  • Minimum 6 GB RAM
  • 3 Cores

To execute all the system :

  git clone https://github.com/mordp1/lab_kafka
  cd lab_kafka
  vagrant up
  vagrant ssh
  sudo su -
  cd /vagrant/
  ansible-playbook main.yaml
  kubectl get pods --all-namespaces

The Time to up all the system it's approx 10 min.

Acces the Systems in your computer:

Kafdrop - To see Messages and other things for Apache Kafka:

  • http://127.0.0.1:30900
  • Choice the topic input or output
  • So, click the View Message button ( you need to select the number offset message)

Prometheus:

Grafana:

  • http://127.0.0.1:30300
  • user: admin / pass: admin
  • On the main screen Grafana, roll down to see the installed dashboard and click strimzi-kafka-exporter to Open Dashboard.

Kafka Brokers:

  • 127.0.0.1:30094

Kafka Python Producer and Consumer :

  • kubectl get pods
  • kubectl logs -f POD_NAME ( To see output python)

Explain

2 topics in Kafka called 'input' and 'output'.

Consumer and producer program in python.

Producer continuously writes messages to 'input' topic with epoch timestamp in ms.

The consumer that reads from 'input' topic, transforms input message to date string (must be in RFC 3339) and sends to topic 'output'

Prometheus + Grafana to monitoring Kafka Broker.

Kafdrop to help monitor and see message topic.

All application run in Minikube, 3 Differents Namespaces: Kafka (Kafka and zookeeper cluster/configs), monitoring (Prometheus + Grafana) and Default ( Kafdrop, Producer and Consumer).

Details

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages