Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1
-
Fix Version/s: 2.0.2
-
Component/s: cross-datacenter-replication, documentation, RESTful-APIs
-
Security Level: Public
-
Labels:None
Description
http://www.couchbase.com/forums/thread/xdcr-stats-rest-api:
We are using Couchbase in our environment and I have been asked to set up monitoring (Cacti/Nagios). One of the top requests is cross datacenter replication stats. I have dug through the manual, a stats list at GIThub, and whatever else I could locate but haven't seen any way of retrieving these statistics through the API.
Can someone point me in the right direction? This info is available through the CB UI it seems so it can't be that difficult...
-If you can get me a list of all stats endpoints (for stats sent in the UI), then assign this back to me.
We are using Couchbase in our environment and I have been asked to set up monitoring (Cacti/Nagios). One of the top requests is cross datacenter replication stats. I have dug through the manual, a stats list at GIThub, and whatever else I could locate but haven't seen any way of retrieving these statistics through the API.
Can someone point me in the right direction? This info is available through the CB UI it seems so it can't be that difficult...
-If you can get me a list of all stats endpoints (for stats sent in the UI), then assign this back to me.
Issue Links
- is duplicated by
-
MB-7910
Document gathering XDCR statistics via REST
-
http://[IP]:8091/pools/default/buckets/[bucket_name]/stats
Docs written:
replications/[UUID]/[source_bucket]/[destination_bucket]/docs_written
Data replicated (size):
replications/[UUID]/[source_bucket]/[destination_bucket]/data_replicated
Mutations left:
replications/[UUID]/[source_bucket]/[destination_bucket]/changes_left
Docs checked:
replications/[UUID]/[source_bucket]/[destination_bucket]/docs_checked
Checkpoints issued:
replications/[UUID]/[source_bucket]/[destination_bucket]/num_checkpoints
Checkpoints failed:
replications/[UUID]/[source_bucket]/[destination_bucket]/num_failedckpts
Replication queue size:
replications/[UUID]/[source_bucket]/[destination_bucket]/size_rep_queue
Active vbucket replicators:
replications/[UUID]/[source_bucket]/[destination_bucket]/active_vbreps
Waiting vbucket replicators:
replications/[UUID]/[source_bucket]/[destination_bucket]/waiting_vbreps
Secs in replicating:
replications/[UUID]/[source_bucket]/[destination_bucket]/time_committing
Time working:
replications/[UUID]/[source_bucket]/[destination_bucket]/time_working
Note: UUID that of destination's
http://[Destination_IP]:8091/pools/default/buckets/[bucket_name]/stats
xdcr destination ops:
xdc_ops