<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Guy Shilo</title>
    <description>The latest articles on DEV Community by Guy Shilo (@guyshiloizy).</description>
    <link>https://dev.to/guyshiloizy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F280823%2F2c2456b3-cdf5-4ab5-bdb4-e7b4a67fd3b9.jpg</url>
      <title>DEV Community: Guy Shilo</title>
      <link>https://dev.to/guyshiloizy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guyshiloizy"/>
    <language>en</language>
    <item>
      <title>Kafka Administration and Monitoring UI Tools</title>
      <dc:creator>Guy Shilo</dc:creator>
      <pubDate>Wed, 27 Nov 2019 07:49:10 +0000</pubDate>
      <link>https://dev.to/guyshiloizy/kafka-administration-and-monitoring-ui-tools-hf4</link>
      <guid>https://dev.to/guyshiloizy/kafka-administration-and-monitoring-ui-tools-hf4</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So today we will cover some GUI alternatives.&lt;/p&gt;

&lt;h1&gt;
  
  
  Kafka Tool
&lt;/h1&gt;

&lt;p&gt;First is &lt;a href="http://www.kafkatool.com/" rel="noopener noreferrer"&gt;Kafka Tool&lt;/a&gt;. 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 &lt;strong&gt;not free for commercial use&lt;/strong&gt;. 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.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi1.wp.com%2Fwww.idata.co.il%2Fwp-content%2Fuploads%2Fkafka-administration-and-monitoring-free-graphical-interface-tools%2Fkafkatool.jpg%3Fresize%3D505%252C497" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi1.wp.com%2Fwww.idata.co.il%2Fwp-content%2Fuploads%2Fkafka-administration-and-monitoring-free-graphical-interface-tools%2Fkafkatool.jpg%3Fresize%3D505%252C497" alt="Kafka Tool"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Kafka Manager
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/yahoo/kafka-manager" rel="noopener noreferrer"&gt;Kafka Manager&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;Here are the steps to install it:&lt;/p&gt;

&lt;p&gt;First, download the zip distribution from the link above and unzip it.&lt;/p&gt;

&lt;p&gt;Edit &lt;code&gt;application.conf&lt;/code&gt; and change &lt;code&gt;kafka-manager.zkhosts&lt;/code&gt; to one or more of your ZooKeeper hosts, for example &lt;code&gt;kafka-manager.zkhosts="cloudera2:2181"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;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:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./sbt clean dist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;This will create a distribution file &lt;code&gt;./target/universal/kafka-manager-x.x.x.x.zip&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Replace &lt;code&gt;x.x.x.x&lt;/code&gt; with the version number.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Unzip it to a directory of your choice.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;-Dhttp.port=&lt;/code&gt; startup parameter).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi0.wp.com%2Fwww.idata.co.il%2Fwp-content%2Fuploads%2Fkafka-administration-and-monitoring-free-graphical-interface-tools%2Fkafkamanager.jpg%3Fresize%3D640%252C261" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi0.wp.com%2Fwww.idata.co.il%2Fwp-content%2Fuploads%2Fkafka-administration-and-monitoring-free-graphical-interface-tools%2Fkafkamanager.jpg%3Fresize%3D640%252C261" alt="Kafka Manager"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Kafdrop
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/obsidiandynamics/kafdrop" rel="noopener noreferrer"&gt;Kafdrop&lt;/a&gt; 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:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;View Kafka brokers&lt;/strong&gt; — topic and partition assignments, and controller status&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;View topics&lt;/strong&gt; — partition count, replication status, and custom configuration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browse messages&lt;/strong&gt; — JSON, plain text and Avro encoding&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;View consumer groups&lt;/strong&gt; — per-partition parked offsets, combined and per-partition lag&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Create new topics&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;View ACLs&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To get started, just use Docker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 9000:9000 &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;KAFKA_BROKERCONNECT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;host:port,host:port&amp;gt; &lt;span class="se"&gt;\&lt;/span&gt;
    obsidiandynamics/kafdrop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When it starts, open your browser to &lt;a href="http://localhost:9000" rel="noopener noreferrer"&gt;localhost:9000&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fobsidiandynamics%2Fkafdrop%2Fraw%2Fmaster%2Fdocs%2Fimages%2Foverview.png%3Fraw%3Dtrue" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fobsidiandynamics%2Fkafdrop%2Fraw%2Fmaster%2Fdocs%2Fimages%2Foverview.png%3Fraw%3Dtrue" alt="Kafdrop"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Burrow
&lt;/h1&gt;

&lt;p&gt;Another tool worth mentioning is &lt;a href="https://github.com/linkedin/Burrow" rel="noopener noreferrer"&gt;Burrow&lt;/a&gt; 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: &lt;a href="http://www.idata.co.il/2016/09/monitoring-kafka-consumer-lag-with-burrow/" rel="noopener noreferrer"&gt;Monitoring Kafka consumer lag with Burrow&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About the author&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>tool</category>
      <category>monitoring</category>
      <category>admin</category>
    </item>
  </channel>
</rss>
