Kafdrop for Beginners – Visualizing Kafka Made Easy

July 10, 2025 (1w ago)

🖥️ Kafdrop — A Simple UI to See What's Happening in Kafka

Apache Kafka is powerful, but working with it can feel like flying blind.

You can send and receive messages — but how do you see what's going on?

That’s where Kafdrop comes in.

Kafdrop is a web-based UI for viewing Kafka topics, messages, consumers, and brokers — all in one place.


🔍 Why Use Kafdrop?

Here’s what Kafdrop helps you do:

In short, Kafdrop makes Kafka human-friendly 🧠


⚙️ How Kafdrop Works

Kafdrop connects to your Kafka cluster and exposes a clean web UI.

Here’s the setup:


🚀 Run Kafdrop with Docker

Here’s how you can launch Kafdrop with Docker (the easiest way).

1. Start Kafka and Zookeeper (if not already running)

Use Docker Compose or your preferred method.

2. Run Kafdrop

docker run -d -p 9000:9000   -e KAFKA_BROKERCONNECT=localhost:9092   obsidiandynamics/kafdrop

Then open your browser and go to: http://localhost:9000

You’ll see a dashboard like this:


🧪 Example: View Pizza Orders in Kafdrop

If you’re running a Kafka topic called pizza-orders (from our previous blog), you can:

  1. Open Kafdrop
  2. Click on pizza-orders
  3. Browse recent messages (e.g., "Order #42 - Pepperoni Pizza")
  4. See which consumers have received it

It’s like opening a window into your Kafka system.


💡 Common Use Cases


📌 Quick Reference

Feature What It Does
View Topics See all Kafka topics
Browse Messages Read actual messages in each topic
Monitor Consumers Track lag and activity
Inspect Brokers See broker details and partitions

🧰 Other Ways to Use Kafdrop

If you don’t want Docker, you can also:

Run via JAR file

java -jar kafdrop.jar   --kafka.brokerConnect=localhost:9092

You can download the latest JAR from the official GitHub repo.


🏁 Final Thoughts

Kafdrop doesn’t replace Kafka — it reveals Kafka.

If you’re learning, building, or debugging with Kafka, Kafdrop gives you visibility into everything that’s happening.

It’s a must-have tool for:

Once you install Kafdrop, you'll never want to work with Kafka blind again 😄