As described in the following doc,
XDCR supports rest apis for retrieving xdcr runtime stats like the follows:
There are issues with the following stats, though, since the stats name that xdcr passes to the UI are different from those described in the doc.
rate_replication in doc -> rate_replicated actual
docs_latency_wt in doc -> wtavg_docs_latency actual
meta_latency_wt in doc -> wtavg_meta_latency actual
It is not easy to change the xdcr stats names to match those in the documentation - upgrade issues may arise if we do that. We will need to get the stats names in the documentation changed to match the actual xdcr stats names.