Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CBD-930: round average xdcr metrics

Change-Id: I2769b39932327901b43104054bab5806352d8927
Reviewed-on: http://review.couchbase.org/25541
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
commit fa97826271ed88e412f9b2302a635778d6f02a6a 1 parent b189fa3
Pavel Paulau pavel-paulau authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  scripts/post_perf_data.py
3  scripts/post_perf_data.py
@@ -65,10 +65,11 @@ def post_to_cbm(input_json):
65 65 xdcr_stats = {"Avg. XDCR Queue": "replication_changes_left",
66 66 "Avg. XDCR ops/sec": "xdc_ops"}
67 67 for title, metric in xdcr_stats.iteritems():
68   - metrics[title] = mean([
  68 + value = mean([
69 69 mean(sample["op"]["samples"].get(metric, []))
70 70 for sample in input_json["ns_server_data"]
71 71 ])
  72 + metrics[title] = round(value, 1)
72 73 if "reb_dur" in input_json["info"]:
73 74 metrics["Rebalance Time, s"] = int(input_json["info"]["reb_dur"])
74 75 elif testcase.startswith("reb"):

0 comments on commit fa97826

Please sign in to comment.
Something went wrong with that request. Please try again.