<?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: Alexandre Fruchaud</title>
    <description>The latest articles on DEV Community by Alexandre Fruchaud (@mmacphail).</description>
    <link>https://dev.to/mmacphail</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F753440%2F4487ffe7-c757-467c-b9ea-6dcba1dbd6d4.jpg</url>
      <title>DEV Community: Alexandre Fruchaud</title>
      <link>https://dev.to/mmacphail</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mmacphail"/>
    <language>en</language>
    <item>
      <title>Open sourcing Kafka Monitoring</title>
      <dc:creator>Alexandre Fruchaud</dc:creator>
      <pubDate>Tue, 16 Nov 2021 18:45:52 +0000</pubDate>
      <link>https://dev.to/mmacphail/open-sourcing-kafka-monitoring-3pnh</link>
      <guid>https://dev.to/mmacphail/open-sourcing-kafka-monitoring-3pnh</guid>
      <description>&lt;h1&gt;
  
  
  How it all started
&lt;/h1&gt;

&lt;p&gt;As a Kafka guy, when I'm helping teams learning about how to setup Kafka, there's always one recurring element: how do you monitor Kafka ?&lt;/p&gt;

&lt;p&gt;Kafka is a wonderful piece of machinery, but it's complex to manage. You have to monitor (at minimum) 2 products, Zookeeper (3 or 5 instances, in typical installation) and the Kafka brokers (3 or 4 instances, usually, but as an architect would say: "it depends of the context").&lt;/p&gt;

&lt;p&gt;For Zookeeper, to start you can just say: is it alive ? Does it respond to requests ? And It's usually fine. But for the brokers, knowing they are running doesn't tell you the whole story. You have to understand how they are running: is your cluster healthy ? Is it serving requests ? How full is your request queue ? etc.&lt;/p&gt;

&lt;p&gt;Once you monitor the brokers, you should also monitor the client application. How are they performing in their interaction with Kafka ?&lt;/p&gt;

&lt;p&gt;And once you have done that, you have to consider monitoring all other parts of the Kafka ecosystem : Kafka connect, Kafka streams ecosystem, Schema registry, etc.&lt;/p&gt;

&lt;p&gt;The amount of things you have to understand about Kafka to monitor it can be &lt;em&gt;overwhelming&lt;/em&gt;. For us, at Zenika, the best thing is to start with some dashboards that can tell you a story.&lt;/p&gt;

&lt;p&gt;What we want as Zenika's Kafka guys is to provide a way for teams to easily bootstrap a generic monitoring setup, learn from it, and make their own dashboard and alerting once they understand how all of this works.&lt;/p&gt;

&lt;h1&gt;
  
  
  Our open source project
&lt;/h1&gt;

&lt;p&gt;With a colleague, we decided it was time to make an open source project that would show default dashboards for Kafka. We started the project &lt;a href="https://github.com/Zenika/kafka-monitoring"&gt;kafka-monitoring&lt;/a&gt; as a draft of what it would look like.&lt;/p&gt;

&lt;p&gt;We worked together on the goal: providing Grafana dashboards that teams could easily copy and setup in their context. We wanted to address all Kafka ecosystem products: producer, consumers, connectors, stream apps (and if we had the time, KSQL, Schema Registry, Rest Proxy ?).&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://github.com/Zenika/kafka-monitoring/blob/main/docker-compose.yaml"&gt;docker-compose file&lt;/a&gt; was the way to go, which would explain some of the best practices in Kafka configuration (like a default &lt;a href="https://kafka.apache.org/documentation/#brokerconfigs_default.replication.factor"&gt;replication.factor&lt;/a&gt; and &lt;a href="https://kafka.apache.org/documentation/#topicconfigs_min.insync.replicas"&gt;min.insync.replicas&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;As big fan of agile, we started with the most valuable thing: the metrics of the Kafka brokers. We worked on a &lt;a href="https://github.com/Zenika/kafka-monitoring/blob/main/config/grafana_dashboard.json"&gt;first Grafana dashboard&lt;/a&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  StreamThoughts already thought of this
&lt;/h1&gt;

&lt;p&gt;A huge ecosystem like Kafka has dozen of open source project. Surely some &lt;a href="https://grafana.com/search/?term=kafka&amp;amp;type=dashboard"&gt;Kakfa dashboards already existed!&lt;/a&gt; That's true, but how do you navigate this sea of projects ? How do you know which dashboards are reliable, and which dashboards are up to date ?&lt;/p&gt;

&lt;p&gt;It's when we encountered &lt;a href="https://github.com/streamthoughts/"&gt;StreamThoughts' project&lt;/a&gt;, that we knew that instead of doing our own work, we would contribute to existing work. We knew of StreamThoughts because it's co-founder, &lt;a href="https://www.linkedin.com/in/florian-hussonnois/"&gt;Florian Hussonnois&lt;/a&gt;, is an ex-colleague of ours.&lt;/p&gt;

&lt;p&gt;That's the magic of open source: finding people that want to solve the same problem, and making them work together!&lt;/p&gt;

&lt;h1&gt;
  
  
  An exciting opportunity
&lt;/h1&gt;

&lt;p&gt;We forked StreamThoughts' project and are starting to work on some contribution! I'm excited to see where this will bring us.&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>opensource</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Hello, world</title>
      <dc:creator>Alexandre Fruchaud</dc:creator>
      <pubDate>Mon, 15 Nov 2021 08:27:35 +0000</pubDate>
      <link>https://dev.to/mmacphail/hello-world-48k</link>
      <guid>https://dev.to/mmacphail/hello-world-48k</guid>
      <description>&lt;p&gt;Checking that everything is working correctly ;)&lt;/p&gt;

&lt;h1&gt;
  
  
  This should be Markdown
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;And also this&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Let's&lt;/li&gt;
&lt;li&gt;Code&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'm &lt;code&gt;happy&lt;/code&gt;!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This is multiline code.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
