kafka 监控系统 kafka Ealge
kafka ealge 是目前来说比较好用的kafka监控系统了
1.没有安装包的小伙伴可以去下载
链接:https://pan.baidu.com/s/1Qn-Qh81jk5w0wXCiBHmzSw
提取码:93iz
2.解压,配置环境变量,比较简单就不在赘述了。
3.进入 conf 目录,只需要修改 system-config.properties 文件
配置以及解释说明在下面配置文件中
######################################
# multi zookeeper&kafka cluster list
######################################
#配置两个集群信息,设置kafka对应的zookeeper 的信息
kafka.eagle.zk.cluster.alias=cluster1,cluster2
cluster1.zk.list=dn1:2181,dn2:2181,dn3:2181
cluster2.zk.list=dn1:2181,dn2:2181,dn3:2181/kafka202
######################################
# zk client thread limit
######################################
# 设置Zookeeper线程数
kafka.zk.limit.size=25
######################################
# kafka eagle webui port
######################################
# 设置Kafka Eagle浏览器访问端口
kafka.eagle.webui.port=8048
######################################
# kafka offset storage
######################################
# 根据kafka offset存储位置来决定,0.10.x 以后的版本使用kafka
# 0.8.2.x以前的使用zookeeper
cluster1.kafka.eagle.offset.storage=kafka
cluster2.kafka.eagle.offset.storage=zookeeper
######################################
# enable kafka metrics
######################################
# 是否启动监控图表,默认是不启动的
kafka.eagle.metrics.charts=true
#在使用Kafka SQL查询主题时,如果遇到错误,可以尝试设置为true
kafka.eagle.sql.fix.error=false
######################################
# kafka sql topic records max
######################################
kafka.eagle.sql.topic.records.max=5000
######################################
# alarm email configure
######################################
#kafka.eagle.mail.enable=false
#kafka.eagle.mail.sa=alert_sa@163.com
#kafka.eagle.mail.username=alert_sa@163.com
#kafka.eagle.mail.password=mqslimczkdqabbbh
#kafka.eagle.mail.server.host=smtp.163.com
#kafka.eagle.mail.server.port=25
######################################
# alarm im configure
######################################
#kafka.eagle.im.dingding.enable=true
#kafka.eagle.im.dingding.url=https://oapi.dingtalk.com/robot/send?access_token=
#kafka.eagle.im.wechat.enable=true
#kafka.eagle.im.wechat.token=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=xxx&corpsecret=xxx
#kafka.eagle.im.wechat.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=
#kafka.eagle.im.wechat.touser=
#kafka.eagle.im.wechat.toparty=
#kafka.eagle.im.wechat.totag=
#kafka.eagle.im.wechat.agentid=
######################################
# delete kafka topic token
######################################
# 超级管理员删除主题的Token
kafka.eagle.topic.token=keadmin
######################################
# kafka sasl authenticate
######################################
# 如果启动Kafka SASL协议,开启该属性
cluster1.kafka.eagle.sasl.enable=false
cluster1.kafka.eagle.sasl.protocol=SASL_PLAINTEXT
cluster1.kafka.eagle.sasl.mechanism=PLAIN
cluster2.kafka.eagle.sasl.enable=false
cluster2.kafka.eagle.sasl.protocol=SASL_PLAINTEXT
cluster2.kafka.eagle.sasl.mechanism=PLAIN
######################################
# kafka jdbc driver address
######################################
# Kafka Eagle 信息存储数据库配置
kafka.eagle.driver=com.mysql.jdbc.Driver
kafka.eagle.url=jdbc:mysql://dn1:3306/test
kafka.eagle.username=root
kafka.eagle.password=******
4.启动kafka eagle
cd ${KE_HOME}/bin
chmod +x ke.sh
./ke.sh start
5监控界面
登录界面 admin /123456
登录成功后
这里配置了管理两个集群,可以切换当前集群信息,如下