Giter VIP home page Giter VIP logo

kafka-zookeeper-monitoring's Introduction

Kafka-Zookeeper-monitoring-by-zabbix

First you have to install zabbix-java-gataway

yum install -y zabbix-java-gataway

Configuring zabbix-java-gataway

mcedit /etc/zabbix/zabbix_java_gateway.conf
  • Uncoment and set START_POLLERS=10

Configuring zabbix-server

mcedit /etc/zabbix/zabbix_server.conf
  • Uncoment and set to StartJavaPollers=5
  • Change IP for JavaGateway=IP_address_java_gateway

Restart zabbix-server

/etc/init.d/zabbix-java-gataway restart

Add to autorun zabbix-java-gataway

 chkconfig --level 345 zabbix-java-gataway on

Start zabbix-java-gataway

/etc/init.d/zabbix-java-gataway start

Configuring monitoring broker

cp jmx_discovery /etc/zabbix/externalscripts  
cp JMXDiscovery-0.0.1.jar /etc/zabbix/externalscripts  ## On zabbix server not client.
chmod a+x jmx_discovery
  • Download template [zbx_kafka_templates.xml] and upload to zabbix

Configuring monitoring consumer

 cp kafka_consumers.sh /etc/zabbix/
 chmod a+x kafka_consumers.sh
 cp userparameter_kafkaconsumer.conf /etc/zabbix/zabbix_agentd.d
  • Download template [zbx_kafka_consumer_templates.xml],[zbx_valuemaps_kafkaconsumers.xml] and upload to zabbix

Install burrow

 cd kafka-monitoring/kafkaconsumers
 cp -r burrow /opt/
 cp burrow.service /usr/lib/systemd/system/burrow.service
 systemctl enable burrow && systemctl start burrow
  • You should change config file in /opt/burrow/config/burrow.toml

Install jq

 cd /usr/bin
 wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64  ## or using EPEL-7 repo to install jq
 mv jq-linux64 jq
 chmod +x jq

Zookeeper-monitoring

cd Kafka-Zookeeper-monitoring/zookeeper-monitoring
cp zookeeper.sh /etc/zabbix/scripts  ## You should edit env in scripts on you own
chmod a+x zookeeper.sh
cp userparameter_zookeeper.conf /etc/zabbix/zabbix_agentd.d
  • Download template [zbx_zookeeper_templates.xml] and upload to zabbix

kafka-zookeeper-monitoring's People

Contributors

leon0306 avatar

Watchers

James Cloos avatar BossDing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.