

Kafka exporter download#
You can explore various individual metrics and come up with something new! Download Kafka Lag exporter

You can now add/change/remove charts to suit your requirements.

Step 3 -Select the data source and folder name. Step 2 – You can import by typing the id assigned by grafana website to the dashboard or directly paste the JSON. Step 1 – Press the + button as shown below To import a grafana dashboard follow these steps For the purpose of this blog entry, I am going to import a dashboard on this link Its time to import a grafana dashboard for Kafka brokers. So our Prometheus server is now able to scrape Kafka broker metrics. This metric is available to a jmx_exporter by default Grafana Dashboard for Kafka Brokers The metrics from JMX exporter can be queried like any other metrics. This would bring up something similar as below Query Prometheus using PromQL You can check if Prometheus server is able to scrape the metrics is by navigating to Prometheus UI on Prometheus can also show you if it is scrapping metrics of Kafka Brokers prometheus -config.file= "prometheus.yml" =400d = "data/" In my case it is $KAFKA_HOME/conf Step – 2 – Edit kafka-server-start.sh Step – 1 – Goto the Kafka configuration directory Integrating Kafka and JMX exporter is easy and it requires only one line added! ? Here goes I downloaded and have stored my configuration for JMX exporter in the $KAFKA_HOME/config/jmx_exporter.yml Configure Kafka broker There is already a sample configuration file to get us started and it is available on this link. Naming and filtering of the metrics can be done via regex expressions as a configuration in a YAML file.
Kafka exporter install#
In case, you want to install Kafka, head over to this link which has got very nice steps. This blog assumes that you have a working Kafka cluster. Kafka’s metrics are well documented and are available on this link. In this blog, we will use a combination of JMX exporter and a pre-built exporter to monitor Kafka. Till now we have used pre-built exporters for Linux, Docker and JMX exporter for Cassandra. In this blog entry, we will see how we can monitor the state of Kafka brokers and also how we can monitor Kafka topic lags. Monitoring Kafka using Prometheus is easy.
