Kafka Administration and Monitoring UI Tools
Tags: kafka, tool, monitoring, admin
Published: 2019-11-27 07:49:10

Kafka itself comes with command line tools that can do all the administration tasks, but those tools aren’t very convenient because they are not integrated into one tool and you need to run a different tool for different tasks. Moreover, it is getting difficult to work with them when your clusters grow large or when you have several clusters.

So today we will cover some GUI alternatives.

# Kafka Tool
First is [Kafka Tool](http://www.kafkatool.com/). It is a windows program that can connect to a Kafka cluster and do all basic tasks. It can list brokers, topics or consumers and their properties. It allows you to create new topics or update existing ones and you can even look at the messages in a topic or partition. Although it is very useful, its UI seems somewhat old and it lacks some monitoring features like topic lag. Also, it is **not free for commercial use**. So you can't really use it at work unless you pay for it. (Technically you can, but this would violate the licensing terms and put you and your employer at risk.)

![Kafka Tool](https://i1.wp.com/www.idata.co.il/wp-content/uploads/kafka-administration-and-monitoring-free-graphical-interface-tools/kafkatool.jpg?resize=505%2C497)

# Kafka Manager
[Kafka Manager](https://github.com/yahoo/kafka-manager) is a web based management system for Kafka developed at Yahoo. It is capable of administrating multiple clusters, it can show statistics on individual brokers or topics such as messages per second, lag and so on. But it's more of an administrative tool — unfortunately you can't use it to browse messages. It also requires access to the ZooKeeper nodes, so you might not be able to use it in some production environments, where ZooKeeper nodes are typically firewalled.

Here are the steps to install it:

First, download the zip distribution from the link above and unzip it.

Edit `application.conf` and change `kafka-manager.zkhosts` to one or more of your ZooKeeper hosts, for example `kafka-manager.zkhosts="cloudera2:2181"`.

Now you should build Kafka Manager. It uses play framework but it is installed and configured automatically (unlike Kafka web console that is discussed later). In the directory where you unzipped it, run:

```sh
./sbt clean dist
```

This can take long time to complete (about 30 minutes on the first build, as it has to download a bunch of dependencies).

This will create a distribution file `./target/universal/kafka-manager-x.x.x.x.zip`

> Replace `x.x.x.x` with the version number.

Unzip it to a directory of your choice.

After it’s done starting, you can access it with you browser at port 9000 (this is the default, but you can change it by adding `-Dhttp.port=` startup parameter).

![Kafka Manager](https://i0.wp.com/www.idata.co.il/wp-content/uploads/kafka-administration-and-monitoring-free-graphical-interface-tools/kafkamanager.jpg?resize=640%2C261)

# Kafdrop
[Kafdrop](https://github.com/obsidiandynamics/kafdrop) is a web UI for viewing Kafka topics and browsing consumer groups. The tool displays information such as brokers, topics, partitions, consumers, and lets you view messages. Kafdrop seems modern and very impressive and its capabilities are very similar to those of Kafka Manager, but with more focus on the letting you view the contents of the brokers. Its features include:

* **View Kafka brokers** — topic and partition assignments, and controller status
* **View topics** — partition count, replication status, and custom configuration
* **Browse messages** — JSON, plain text and Avro encoding
* **View consumer groups** — per-partition parked offsets, combined and per-partition lag
* **Create new topics**
* **View ACLs**

To get started, just use Docker:

```sh
docker run -it -p 9000:9000 \
    -e KAFKA_BROKERCONNECT=<host:port,host:port> \
    obsidiandynamics/kafdrop
```

When it starts, open your browser to [localhost:9000](http://localhost:9000):

![Kafdrop](https://github.com/obsidiandynamics/kafdrop/raw/master/docs/images/overview.png?raw=true)

# Burrow
Another tool worth mentioning is [Burrow](https://github.com/linkedin/Burrow) from LinkedIn. We will not cover it in detail this time because it does not fall into the same category as the previous tools mentioned here. It does not have a graphical user interface and it does not have any cluster management capabilities. It’s strength is in its ability to monitor consumer groups for lags and general health in a simple way. It can also automatically notify an administrator by email or http about any problems. I covered it in more detail in this post: [Monitoring Kafka consumer lag with Burrow](http://www.idata.co.il/2016/09/monitoring-kafka-consumer-lag-with-burrow/).

---

**About the author**
_Guy Shilo is a Data engineer from Israel. Guy's been dealing with data and IT for many years as a DBA, mostly on Oracle platforms. In the last few years, Guy had witnessed the rise of new, distributed data storage and processing platforms such as Hadoop and Kafka with all its sub-projects, and a plethora of specialized NoSQL databases, search engines and distributed computing frameworks._