環境變量配置
- 分別在 path 和 KE_HOME 配置環境變量
- KE_HOME=D:\kafka-eagle\kafka-eagle-web-1.3.7
- Path=%KE_HOME%\bin
下載 Kafka eagle
- http://download.kafka-eagle.org/
- https://github.com/smartloli/kafka-eagle/releases
- 這兩個都可以,一個是官網下載,一個是 GitHub 下載
配置 Kafka eagle 的 system-config.properties
###################################### # multi zookeeper&kafka cluster list ###################################### # 配置 zk,我這裏是單節點,集羣的話配置如下面 cluster2 所示 kafka.eagle.zk.cluster.alias=cluster1 cluster1.zk.list=localhost:2181 #cluster2.zk.list=xdn10:2181,xdn11:2181,xdn12:2181 ###################################### # zk client thread limit ###################################### kafka.zk.limit.size=25 ###################################### # kafka eagle webui port ###################################### kafka.eagle.webui.port=8048 ###################################### # kafka offset storage ###################################### cluster1.kafka.eagle.offset.storage=kafka #cluster2.kafka.eagle.offset.storage=zk ###################################### # enable kafka metrics ###################################### # 開啓圖表監控,將 false 變爲 true kafka.eagle.metrics.charts=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 [email protected] [email protected] 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 ###################################### kafka.eagle.topic.token=keadmin ###################################### # kafka sasl authenticate ###################################### cluster1.kafka.eagle.sasl.enable=false cluster1.kafka.eagle.sasl.protocol=SASL_PLAINTEXT cluster1.kafka.eagle.sasl.mechanism=PLAIN cluster1.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="kafka-eagle"; cluster2.kafka.eagle.sasl.enable=false cluster2.kafka.eagle.sasl.protocol=SASL_PLAINTEXT cluster2.kafka.eagle.sasl.mechanism=PLAIN cluster2.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="kafka-eagle"; ###################################### # kafka jdbc driver address ###################################### kafka.eagle.driver=org.sqlite.JDBC kafka.eagle.url=jdbc:sqlite:/D:/kafka-eagle/kafka-eagle-web-1.3.7/db/ke.db kafka.eagle.username=root kafka.eagle.password=123456 # 改成自己的url ke.de的位置
啓動
啓動 Zookeeper
啓動 Kafka 服務
啓動 Web 監控服務,輸入:http://localhost:8048/ke/
進入之後先顯示一個登錄頁面
用戶名默認:admin
密碼:123456
登錄完成後顯示如下圖所示:
到此登錄成功,
頁面標識
- Kafka 集羣節點個數
- 主題,個數爲3
- Zookeeper 集羣
- 消費者組
- 內存佔比情況
- 主題消費數據大小
- 主題容量
- Kafka 集羣