Docker-compose file for Apache Kafka metrics monitoring verification using zabbix.
This docker-compose contains following containers.
- Apache Kafka
- Zookeeper
- zabbix
- database
- grafana
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 :
pwd
docker compose up -d
-
zabbix
- Default userID and password is
admin/zabbix
.
- Default userID and password is
-
grafana
- Default userID and password is
admin/admin
.
- Default userID and password is
Go to Configuration
> Templates
> Import
, and select kafka_jmx_templates.xml
.
Pour nous, le template sera dans : ~/kafka-zabbix/
Go to Configuration
> Hosts
> Create Host
, and add JMX interfaces.
Then, Link template to this host.
Go to templates
, and add the template.
Exemple des métriques :
Go to http://localhost:3000/plugins, and select Zabbix plugin : > Administration > Plugins and data > Plugins
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
Add Zabbix for data source.
- HTTP
- Host: http://zabbix-web/api_jsonrpc.php
- Access: Server
- Zabbix API details
- Username: admin
- password: zabbix
- check
trends
on
- Direct DB Connection
- check
Enable
on - Data source: select mySQL name
- check