Merge pull request #88666 from ingvagabund/scheduler-perf-do-not-override-throughput-labes

scheduler_perf: do not override throughput labels
This commit is contained in:
Kubernetes Prow Robot 2020-02-28 12:55:03 -08:00 committed by GitHub
commit 0d2844f564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],