README 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Licensed to the Apache Software Foundation (ASF) under one
  2. or more contributor license agreements. See the NOTICE file
  3. distributed with this work for additional information
  4. regarding copyright ownership. The ASF licenses this file
  5. to you under the Apache License, Version 2.0 (the
  6. "License"); you may not use this file except in compliance
  7. with the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. Recipes for ZooKeeper monitoring using Ganglia
  15. ----------------------------------------------
  16. Ganglia Install guide: http://sourceforge.net/apps/trac/ganglia/wiki/Ganglia%203.1.x%20Installation%20and%20Configuration
  17. Gmond configuration: http://sourceforge.net/apps/trac/ganglia/wiki/Gmond%203.1.x%20General%20Configuration
  18. WARNING: I have wrote these instructions while installing and configuring the plugin on my desktop computer running Ubuntu 9.10. I've installed Ganglia using apt-get.
  19. WARNING: I'm going to make the assumption that you know how to work with Ganglia. I'm also going to assume that you have already installed Gangli and everything works as expected.
  20. You can monitoring ZooKeeper using Ganglia in two ways:
  21. 1. Using a python module:
  22. WARNING! The python module only works with Ganglia 3.1.x
  23. a. enable python modules: you can find instructions in modpython.confg
  24. b. copy zookeeper.pyconf in /etc/ganglia/conf.d/
  25. c. copy zookeeper_ganglia.py in /usr/lib/ganglia/python_plugins
  26. d. restart the ganglia-monitor
  27. This is the recommended way!
  28. 2. OR Using check_zookeeper.py and gmetric:
  29. Monitoring ZooKeeper using Ganglia is a simple as calling:
  30. ./check_zookeeper.py -o ganglia -s localhost:2181
  31. on each of the ZooKeeper cluster nodes. I'm making the assumption that you have already configured gmond and installed gmetric on each node.