From 5b3b4de972ce4a8496680ffd86a10a8db4687142 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Fri, 28 Feb 2020 16:10:48 +0100 Subject: [PATCH] scheduler_perf: do not override throughput labels Throughput labels are currently initialized with a "Name" label. So we need to append to the map instead of creating a new one. --- test/integration/scheduler_perf/util.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/scheduler_perf/util.go b/test/integration/scheduler_perf/util.go index 6779ee18539..715d03d3b21 100644 --- a/test/integration/scheduler_perf/util.go +++ b/test/integration/scheduler_perf/util.go @@ -243,9 +243,7 @@ func (tc *throughputCollector) collect() []DataItem { sum += tc.schedulingThroughputs[i] } - throughputSummary.Labels = map[string]string{ - "Metric": "SchedulingThroughput", - } + throughputSummary.Labels["Metric"] = "SchedulingThroughput" throughputSummary.Data = map[string]float64{ "Average": sum / float64(length), "Perc50": tc.schedulingThroughputs[int(math.Ceil(float64(length*50)/100))-1],