Permalink
Browse files

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...
1 parent b189fa3 commit fa97826271ed88e412f9b2302a635778d6f02a6a @pavel-paulau pavel-paulau committed with pavel-paulau Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/post_perf_data.py
View
3 scripts/post_perf_data.py
@@ -65,10 +65,11 @@ def post_to_cbm(input_json):
xdcr_stats = {"Avg. XDCR Queue": "replication_changes_left",
"Avg. XDCR ops/sec": "xdc_ops"}
for title, metric in xdcr_stats.iteritems():
- metrics[title] = mean([
+ value = mean([
mean(sample["op"]["samples"].get(metric, []))
for sample in input_json["ns_server_data"]
])
+ metrics[title] = round(value, 1)
if "reb_dur" in input_json["info"]:
metrics["Rebalance Time, s"] = int(input_json["info"]["reb_dur"])
elif testcase.startswith("reb"):

0 comments on commit fa97826

Please sign in to comment.