|
5 | 5 | [](https://codeclimate.com/github/sensu-plugins/sensu-plugins-zookeeper)
|
6 | 6 | [](https://codeclimate.com/github/sensu-plugins/sensu-plugins-zookeeper)
|
7 | 7 | [](https://gemnasium.com/sensu-plugins/sensu-plugins-zookeeper)
|
| 8 | +[](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-zookeeper) |
| 9 | + |
| 10 | +## Sensu Asset |
| 11 | +The Sensu assets packaged from this repository are built against the Sensu Ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu Ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the [Bonsai Asset Index](bonsai.sensu.io). |
8 | 12 |
|
9 | 13 | ## Functionality
|
10 | 14 |
|
|
22 | 26 | * metrics-zookeeper-cluster.rb - Gather metrics from An Exhibitor run Zookeeper cluster
|
23 | 27 |
|
24 | 28 | ## Usage
|
| 29 | +``` |
| 30 | +$ check-znode.rb --help |
| 31 | +Usage: ./bin/check-znode.rb (options) |
| 32 | + -v, --check_value REGEX Optionally check the znode value against a regex |
| 33 | + -s, --servers zk-address zk address to connect to (required) |
| 34 | + -z, --znode ZNODE znode to check (required) |
| 35 | +``` |
| 36 | + |
| 37 | +``` |
| 38 | +$ check-zookeeper-file-descriptors.rb --help |
| 39 | +Usage: ./bin/check-zookeeper-file-descriptors.rb (options) |
| 40 | + -d DESCRIPTORS, Critical threshold for Zookeeper open files descriptors |
| 41 | + --file-descriptors |
| 42 | + -p, --port PORT Zookeeper port to connect to. |
| 43 | + -s, --server HOSTNAME Zookeeper hostname to connect to. |
| 44 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 45 | +
|
| 46 | +``` |
| 47 | + |
| 48 | +``` |
| 49 | +$ check-zookeeper-cluster.rb --help |
| 50 | +Usage: ./bin/check-zookeeper-cluster.rb (options) |
| 51 | + -c, --count count Zookeeper cluster node count |
| 52 | + -e, --exhibitor status end point exhibitor end node for status checks |
| 53 | + -l, --latency TICKS Critical threshold for Zookeeper average latency |
| 54 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 55 | + -p, --port port Zookeeper nodes' listen port |
| 56 | +
|
| 57 | +``` |
| 58 | + |
| 59 | +``` |
| 60 | +$ check-netty-zookeeper-cluster.rb --help |
| 61 | +Usage: ./bin/check-netty-zookeeper-cluster.rb (options) |
| 62 | + -c, --count count Zookeeper cluster follower count |
| 63 | + -l, --latency TICKS Critical threshold for Zookeeper average latency |
| 64 | + -p, --port port Zookeeper nodes' listen port |
| 65 | +
|
| 66 | +``` |
| 67 | + |
| 68 | +``` |
| 69 | +$ metrics-zookeeper.rb --help |
| 70 | +Usage: ./bin/metrics-zookeeper.rb (options) |
| 71 | + --host HOST ZooKeeper host |
| 72 | + --port PORT ZooKeeper port |
| 73 | + --scheme SCHEME Metric naming scheme, text to prepend to metrics |
| 74 | +
|
| 75 | +``` |
| 76 | + |
| 77 | +``` |
| 78 | +$ metrics-zookeeper-cluster.rb --help |
| 79 | +Usage: ./bin/metrics-zookeeper-cluster.rb (options) |
| 80 | + -e, --exhibitor status end point exhibitor end node for status checks |
| 81 | + --scheme SCHEME Metric naming scheme, text to prepend to metrics |
| 82 | + -p, --port port Zookeeper nodes' listen port |
| 83 | +
|
| 84 | +``` |
| 85 | + |
| 86 | +``` |
| 87 | +$ check-zookeeper-ruok.rb --help |
| 88 | +Usage: ./bin/check-zookeeper-ruok.rb (options) |
| 89 | + -p, --port PORT Zookeeper port to connect to. |
| 90 | + -s, --server HOSTNAME Zookeeper hostname to connect to. |
| 91 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 92 | +``` |
| 93 | + |
| 94 | +``` |
| 95 | +$ check-zookeeper-reqs.rb --help |
| 96 | +Usage: ./bin/check-zookeeper-reqs.rb (options) |
| 97 | + -r, --reqs REQS Critical threshold for Zookeeper outstanding requests |
| 98 | + -p, --port PORT Zookeeper port to connect to. |
| 99 | + -s, --server HOSTNAME Zookeeper hostname to connect to. |
| 100 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 101 | +``` |
| 102 | + |
| 103 | +``` |
| 104 | +$ check-zookeeper-mode.rb --help |
| 105 | +Usage check-zookeeper-mode.rb (options) |
| 106 | + -m, --mode MODE Space separated expected modes. (required) |
| 107 | + -p, --port PORT Zookeeper port to connect to. |
| 108 | + -s, --server HOSTNAME Zookeeper hostname to connect to. |
| 109 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 110 | +``` |
| 111 | + |
| 112 | +``` |
| 113 | +$ check-zookeeper-latency.rb --help |
| 114 | +Usage: ./bin/check-zookeeper-latency.rb (options) |
| 115 | + -l, --latency TICKS Critical threshold for Zookeeper average latency |
| 116 | + -p, --port PORT Zookeeper port to connect to. |
| 117 | + -s, --server HOSTNAME Zookeeper hostname to connect to. |
| 118 | + -t, --timeout SECS How long to wait for a reply in seconds. |
| 119 | +
|
| 120 | +``` |
25 | 121 |
|
26 | 122 | ## Installation
|
27 | 123 |
|
|
0 commit comments