Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: RESTful-APIs, XDCR
    • 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.

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          abhinav Abhinav Dangeti added a comment - - edited

          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

          Show
          abhinav Abhinav Dangeti added a comment - - edited 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
          Hide
          abhinav Abhinav Dangeti added a comment -

          These stats are as of 2.0.1-148-rel
          Its likely that some of these stats will be removed and a couple of new stats will be added (as per the XDCR brain dump yesterday).

          Show
          abhinav Abhinav Dangeti added a comment - These stats are as of 2.0.1-148-rel Its likely that some of these stats will be removed and a couple of new stats will be added (as per the XDCR brain dump yesterday).
          Hide
          kzeller kzeller added a comment -

          Do you have any updates on deprecated stats, and new ones for this list?

          Thanks!

          Show
          kzeller kzeller added a comment - Do you have any updates on deprecated stats, and new ones for this list? Thanks!
          Hide
          abhinav Abhinav Dangeti added a comment -

          I'm not seeing the new stats or any deprecated stats on 2.0.1-161, I don't think they were merged in (as of yet at least).

          Show
          abhinav Abhinav Dangeti added a comment - I'm not seeing the new stats or any deprecated stats on 2.0.1-161, I don't think they were merged in (as of yet at least).
          Hide
          maria Maria McDuff (Inactive) added a comment -

          abhinav, what's the status of this? is this ready for QE? who shld this be assigned to for 2.0.2?

          Show
          maria Maria McDuff (Inactive) added a comment - abhinav, what's the status of this? is this ready for QE? who shld this be assigned to for 2.0.2?
          Hide
          abhinav Abhinav Dangeti added a comment -

          No Maria, this isn't for QE, Karen created this bug to get all the endpoints for XDCR, needed for documentation.

          Karen, the rest of the endpoints, that I got off the UI:

          http://[IP]:8091/pools/default/buckets/[bucket_name]/stats

          • bandwidth usage
            replications/[UUID]/[source_bucket]/[destination_bucket]/bandwidth_usage
          • weighted average latency of sending replicated mutations to remote cluster
            replications/[UUID]/[source_bucket]/[destination_bucket]/docs_latency_aggr
            replications/[UUID]/[source_bucket]/[destination_bucket]/docs_latency_wt
          • No. of documents in replication queue
            replications/[UUID]/[source_bucket]/[destination_bucket]/docs_rep_queue
          • weighted average latency of sending getMeta and waiting for conflict resolution on destination
            replications/[UUID]/[source_bucket]/[destination_bucket]/meta_latency_aggr
            replications/[UUID]/[source_bucket]/[destination_bucket]/meta_latency_wt
          • rate of replication (bytes replicated per second)
            replications/[UUID]/[source_bucket]/[destination_bucket]/rate_replication
          Show
          abhinav Abhinav Dangeti added a comment - No Maria, this isn't for QE, Karen created this bug to get all the endpoints for XDCR, needed for documentation. Karen, the rest of the endpoints, that I got off the UI: http://[IP]:8091/pools/default/buckets/[bucket_name]/stats bandwidth usage replications/ [UUID] / [source_bucket] / [destination_bucket] /bandwidth_usage weighted average latency of sending replicated mutations to remote cluster replications/ [UUID] / [source_bucket] / [destination_bucket] /docs_latency_aggr replications/ [UUID] / [source_bucket] / [destination_bucket] /docs_latency_wt No. of documents in replication queue replications/ [UUID] / [source_bucket] / [destination_bucket] /docs_rep_queue weighted average latency of sending getMeta and waiting for conflict resolution on destination replications/ [UUID] / [source_bucket] / [destination_bucket] /meta_latency_aggr replications/ [UUID] / [source_bucket] / [destination_bucket] /meta_latency_wt rate of replication (bytes replicated per second) replications/ [UUID] / [source_bucket] / [destination_bucket] /rate_replication
          Hide
          kzeller kzeller added a comment -

          Check back on 2.0.2 if any UI changes from 2.0.1 stats. update Web Console chapter as needed.

          Show
          kzeller kzeller added a comment - Check back on 2.0.2 if any UI changes from 2.0.1 stats. update Web Console chapter as needed.
          Show
          kzeller kzeller added a comment - Added here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-xdcr-stats.html And for Web Console here for outgoing: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-web-console-data-buckets-individual.html#couchbase-admin-web-console-data-buckets-xdcr And updated Web Console incoming stats and screenshot.
          Show
          kzeller kzeller added a comment - Added here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-xdcr-stats.html And for Web Console here for outgoing: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-web-console-data-buckets-individual.html#couchbase-admin-web-console-data-buckets-xdcr And updated Web Console incoming stats and screenshot.

            People

            • Assignee:
              kzeller kzeller
              Reporter:
              kzeller kzeller
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes