mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #21277 from mwielgus/cm-prefix-fix
Change custom metrics prefix in HPA metrics client
This commit is contained in:
commit
ce395d4423
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ var averageFunction = func(metrics heapster.MetricResultList) (intAndFloat, int,
|
|||
var heapsterCpuUsageMetricDefinition = metricDefinition{"cpu-usage", averageFunction}
|
||||
|
||||
func getHeapsterCustomMetricDefinition(metricName string) metricDefinition {
|
||||
return metricDefinition{"CM:" + metricName, averageFunction}
|
||||
return metricDefinition{"custom/" + metricName, averageFunction}
|
||||
}
|
||||
|
||||
// NewHeapsterMetricsClient returns a new instance of Heapster-based implementation of MetricsClient interface.
|
||||
|
|
|
|||
Loading…
Reference in a new issue