Collect statistics from the Couchbase Buckets API. See: http://docs.couchbase.com/admin/admin/REST/rest-bucket-intro.html
- json
- urllib2
CouchbaseCollector.conf
enabled = True
host = 192.168.56.101:8091
buckets = default, sessions
stats = cmd_get, cmd_set, couch_docs_fragmentation, couch_views_fragmentation, curr_connections, curr_items, decr_hits, decr_misses, delete_hits, delete_misses, ep_bg_fetched, ep_dcp_2i_items_remaining, ep_dcp_other_backoff, ep_dcp_other_count, ep_dcp_other_items_remaining, ep_dcp_other_items_sent, ep_dcp_other_producer_count, ep_dcp_other_total_bytes, ep_dcp_replica_backoff, ep_dcp_replica_count, ep_dcp_replica_items_remaining, ep_dcp_replica_items_sent, ep_dcp_replica_total_bytes, ep_dcp_xdcr_backoff, ep_dcp_xdcr_count, ep_dcp_xdcr_items_remaining, ep_dcp_xdcr_items_sent, ep_dcp_xdcr_producer_count, ep_dcp_xdcr_total_bytes, ep_diskqueue_drain, ep_diskqueue_fill, ep_diskqueue_items, ep_flusher_todo, ep_kv_size, ep_mem_high_wat, ep_oom_errors, ep_queue_size, ep_resident_items_rate, ep_tmp_oom_errors, incr_hits, incr_misses, mem_used, vb_active_queue_age, vb_active_queue_drain, vb_active_queue_fill, vb_active_queue_size, vb_active_resident_items_ratio, vb_avg_total_queue_age, vb_pending_queue_age, vb_pending_queue_drain, vb_pending_queue_fill, vb_pending_queue_size, vb_replica_queue_age, vb_replica_queue_drain, vb_replica_queue_fill, vb_replica_queue_size, vb_replica_resident_items_ratio
ignore = timestamp
Setting | Default | Description | Type |
---|---|---|---|
enabled | False | Enable collecting these metrics | bool |
host | localhost | The hostname(:port) to get metrics from | str |
user | Administrator | Admin username for authentication. Recommendation: use read-only admin | str |
passwd | password | Admin password for authentication | str |
ssl | False | True to enable SSL connections | bool |
buckets | all | A list of buckets to get metrics from. The default is to query all buckets | list |
stats | all | The list of stats to save. The default is to save everything | list |
ignore | The list of stats to exclude. Useful when 'stats' = 'all' | list |