Skip to content

Monitoring Kafka JMX metrics with Zabbix and Grafana.

License

Notifications You must be signed in to change notification settings

crystalloide/kafka-zabbix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka-zabbix

Docker-compose file for Apache Kafka metrics monitoring verification using zabbix.

Containers

This docker-compose contains following containers.

Open in Gitpod

Rappel pour retrouver les environnements éventuellement précédemment instanciés dans Gitpod : https://gitpod.io/workspaces

# Pour afficher les workspaces déjà instanciés si besoin de faire du ménage :

Affichage du répertoire courant dans Gitpod :

pwd

Install

docker compose up -d

Access to zabbix and grafana

Zabbix configuration

Add template for Kafka JMX

Go to Configuration > Templates > Import, and select kafka_jmx_templates.xml.

Pour nous, le template sera dans : ~/kafka-zabbix/

image

Add Hosts

Go to Configuration > Hosts > Create Host, and add JMX interfaces.

image

Then, Link template to this host. Go to templates, and add the template.

image

image

image

image

Exemple des métriques :

image

Grafana configuration

enable Zabbix plugin

Go to http://localhost:3000/plugins, and select Zabbix plugin : > Administration > Plugins and data > Plugins image

Click Enable button. image

image

Add data source

mySQL (Optional)

Direct DB connection allows plugin to access Zabbix database directly. This way usually faster than pulling data from zabbix API.

add mySQL as data source

  • Host: zabbix-db:3306
  • DB name: zabbix
  • user/pw: zabbix:zabbix

image

Zabbix

Add Zabbix for data source.

  • HTTP
  • Zabbix API details
    • Username: admin
    • password: zabbix
    • check trends on
  • Direct DB Connection
    • check Enable on
    • Data source: select mySQL name

image

About

Monitoring Kafka JMX metrics with Zabbix and Grafana.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published