<!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG-spv-->{"id":1807904,"date":"2020-12-31T22:45:00","date_gmt":"2020-12-31T20:45:00","guid":{"rendered":"http:\/\/nhub.news\/?p=1807904"},"modified":"2021-01-01T00:03:16","modified_gmt":"2020-12-31T22:03:16","slug":"grafana-and-prometheus-setup-with-strimzi-a-k-a-kafka-on-kubernetes","status":"publish","type":"post","link":"http:\/\/nhub.news\/de\/2020\/12\/grafana-and-prometheus-setup-with-strimzi-a-k-a-kafka-on-kubernetes\/","title":{"rendered":"Grafana and Prometheus Setup With Strimzi, a.k.a. Kafka on Kubernetes."},"content":{"rendered":"<p style=\"text-align: justify;\"><b>A software developer gives a quick tutorial on how to use Strimzi to integrate Prometheus into a Java-based application. Read on to learn more!<\/b><br \/>\nJoin the DZone community and get the full member experience. In this article, we will see how quickly we can setup Grafana and Prometheus with Strimzi. So let us quickly go through the steps required for this setup.1. Start Minikube.2. Download Strimzi. We can follow steps mentioned in Strimzi docs.3. Setup the Kafka Cluster now. You can find kafka-ephemeral.yaml with kafkaExporter and metrics configured.4. Install the Prometheus operator and the Prometheus server instance. Some important modified YAML files can be found in my personnel GitHub link.5. Check if Strimzi metrics are available.6. Now setup Grafana.7. Connect Grafana with Prometheus as a datasource. Note that in the previous step, we found that the Prometheus service is prometheus-operated on port 9090. Grafana will use this URL to scrap the Prometheus server.8. Import Dashboard: In the &#8222;examples\/metrics\/grafana-dashboards&#8220; file, there are samples available for the Grafana Dashboard; we can reuse them. I used strimzi-zookeeper.json, strimzi-kafka.json, and strimzi-kafka-exporter.json for this demonstration.9. The below allows you to send\/receive traffic in Kafka Brokers: 10. Finally, we can view all dashboards with runtime changes. That&#8217;s it guys. I hope you find it helpful. There is another article for Prometheus integrations with Java applications which you may find helpful too. Opinions expressed by DZone contributors are their own.<\/p>\n<script>jQuery(function(){jQuery(\".vc_icon_element-icon\").css(\"top\", \"0px\");});<\/script><script>jQuery(function(){jQuery(\"#td_post_ranks\").css(\"height\", \"10px\");});<\/script><script>jQuery(function(){jQuery(\".td-post-content\").find(\"p\").find(\"img\").hide();});<\/script>","protected":false},"excerpt":{"rendered":"<p>A software developer gives a quick tutorial on how to use Strimzi to integrate Prometheus into a Java-based application. Read on to learn more! Join the DZone community and get the full member experience. In this article, we will see how quickly we can setup Grafana and Prometheus with Strimzi. So let us quickly go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1807903,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1807904"}],"collection":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/comments?post=1807904"}],"version-history":[{"count":1,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1807904\/revisions"}],"predecessor-version":[{"id":1807905,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/posts\/1807904\/revisions\/1807905"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media\/1807903"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/media?parent=1807904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/categories?post=1807904"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/de\/wp-json\/wp\/v2\/tags?post=1807904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}