Modernize zookeeper readme (#1615)

* Modernize zookeeper readme

* Add configuration
This commit is contained in:
Jack Zampolin 2016-08-10 14:58:47 -07:00 committed by Cameron Sparr
parent 69e4e862a3
commit dee98612e2
1 changed files with 32 additions and 33 deletions

View File

@ -27,40 +27,39 @@ echo mntr | nc localhost 2181
zk_max_file_descriptor_count 1024 - only available on Unix platforms zk_max_file_descriptor_count 1024 - only available on Unix platforms
``` ```
## Measurements: ## Configuration
#### Zookeeper measurements:
Meta: ```
- units: int64 # Reads 'mntr' stats from one or many zookeeper servers
- tags: `server=<hostname> port=<port> state=<leader|follower>` [[inputs.zookeeper]]
## An array of address to gather stats about. Specify an ip or hostname
## with port. ie localhost:2181, 10.0.0.1:2181, etc.
Measurement names: ## If no servers are specified, then localhost is used as the host.
- zookeeper_avg_latency ## If no port is specified, 2181 is used
- zookeeper_max_latency servers = [":2181"]
- zookeeper_min_latency ```
- zookeeper_packets_received
- zookeeper_packets_sent
- zookeeper_outstanding_requests
- zookeeper_znode_count
- zookeeper_watch_count
- zookeeper_ephemerals_count
- zookeeper_approximate_data_size
- zookeeper_followers #only exposed by the Leader
- zookeeper_synced_followers #only exposed by the Leader
- zookeeper_pending_syncs #only exposed by the Leader
- zookeeper_open_file_descriptor_count
- zookeeper_max_file_descriptor_count
#### Zookeeper string measurements: ## InfluxDB Measurement:
Meta: ```
- units: string M zookeeper
- tags: `server=<hostname> port=<port> state=<leader|follower>` T host
T port
T state
Measurement names: F approximate_data_size integer
- zookeeper_version F avg_latency integer
F ephemerals_count integer
### Tags: F max_file_descriptor_count integer
F max_latency integer
- All measurements have the following tags: F min_latency integer
- F num_alive_connections integer
F open_file_descriptor_count integer
F outstanding_requests integer
F packets_received integer
F packets_sent integer
F version string
F watch_count integer
F znode_count integer
```