kafka监控工具kafka Eagle 安装

kafka监控工具kafka Eagle 安装: https://www.cnblogs.com/smartloli/p/9371904.html

https://www.cnblogs.com/smartloli/p/5829395.html

http://www.pianshen.com/article/963781871/

安装在node01: 192,168,72,141这台服务器上

  • 上传安装包,解压

  • 修改配置文件

  • 配置环境变量

  • 启动,控制台查看
    cd /export/software/

    mkdir -p /export/servers/kafkaEagle
    tar -zxvf kafka-eagle-web-1.2.8-bin.tar.gz -C /export/servers/kafkaEagle
    配置环境变量
    vi ~/.bash_profile 
    
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    # PATH=$PATH:$HOME/bin
    # export PATH
    # 添加如下代码
    export PATH=$PATH:$PATH:$KE_HOME/bin
    export KE_HOME=/export/servers/kafkaEagle/kafka-eagle-web-1.2.8
    
    重新加载
    source ~/.bash_profile 
    
    修改配置文件:
    vim /export/servers/kafkaEagle/kafka-eagle-web-1.2.8/conf/system-config.properties
    ######################################
    # multi zookeeper&kafka cluster list
    ######################################
    kafka.eagle.zk.cluster.alias=cluster1,cluster2
    cluster1.zk.list=node01:2181,node02:2181,node03: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
    ######################################
    kafka.eagle.metrics.charts=false
    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
    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.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
    ######################################
    kafka.eagle.sasl.enable=false
    kafka.eagle.sasl.protocol=SASL_PLAINTEXT
    kafka.eagle.sasl.mechanism=PLAIN
    
    ######################################
    # kafka jdbc driver address
    ######################################
    # kafka.eagle.driver=org.sqlite.JDBC
    # kafka.eagle.url=jdbc:sqlite:/hadoop/kafka-eagle/db/ke.db
    # kafka.eagle.username=root
    # kafka.eagle.password=smartloli
    
    kafka.eagle.driver=com.mysql.jdbc.Driver
    kafka.eagle.url=jdbc:mysql://192.168.206.128:3306/ke?useUnicode=true&characterEncoding=UTF-8
    kafka.eagle.username=root
    kafka.eagle.password=root
    
    
    
    
    启动
    /export/servers/kafkaEagle/kafka-eagle-web-1.2.8/bin/ke.sh start
    常用后缀参数:start|stop|restart|status|stats
    启动成功:默认用户名密码
    Account:admin ,Password:123456
    

    注意: 用户名和密码在配置文件中,还有就是数据库的配置信息
    http://192.168.72.141:8048/ke

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值