Git Product home page Git Product logo

lab_kafka's Introduction

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

lab_kafka's People

Contributors

mordp1 avatar

Stargazers

KASSIO DE SOUZA ROCHA avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.