kafka监控服务搭建

wget https://github.com/Morningstar/kafka-offset-monitor/releases/download/0.4.1/KafkaOffsetMonitor-assembly-0.4.1-SNAPSHOT.jar

java -Xms512M -Xmx512M -Xss1024K -XX:PermSize=256m -XX:MaxPermSize=512m \
     -cp  KafkaOffsetMonitor-assembly-0.4.1-SNAPSHOT.jar \
     com.quantifind.kafka.offsetapp.OffsetGetterWeb \
     --offsetStorage kafka \
     --kafkaBrokers kafka:9091,kafka:9092,kafka:9093 \
     --kafkaSecurityProtocol PLAINTEXT \
     --zk zk1:2181,zk2:2182,zk3:2183 \
     --port 8080 \
     --refresh 10.seconds \
     --retain 5.days \
     --dbName offsetapp_kafka



posted @ 2018-11-28 18:08  zz小公子  阅读(328)  评论(0编辑  收藏  举报