kafka监控搭建

1. 下载

wget https://github.com/quantifind/KafkaOffsetMonitor/releases/download/v0.2.1/KafkaOffsetMonitor-assembly-0.2.1.jar

2. 启动脚本

#!/bin/bash
java -Xms512M -Xmx512M -Xss1024K -XX:PermSize=256m -XX:MaxPermSize=512m -cp KafkaOffsetMonitor-assembly-0.2.1.jar com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk 10.112.28.245:2181,10.112.28.229:2181,10.112.28.241:2181 --port 8787 --refresh 10.seconds --retain 7.days 1>/letv/soft/kafkamonitor/logs/stdout.log 2>/letv/soft/kafkamonitor/logs/stderr.log &

echo "start ok ..."

3. 停止脚本

#!/bin/bash

killnum=`jps | grep OffsetGetterWeb | awk '{print $1}'`
kill -9 ${killnum}
echo "OK...."

 

访问:http://10.112.29.4:8787/

 

kafka manager搭建:http://blog.csdn.net/isea533/article/details/73727485

posted @ 2017-08-15 11:51  Jenkin.K  阅读(271)  评论(0编辑  收藏  举报