Skipper metrics collection for resource types

Signed-off-by: Arjun Naik <arjun.rn@gmail.com>
This commit is contained in:
Arjun Naik
2018-11-21 15:16:26 +01:00
parent 217bf900a0
commit 8492832baa

View File

@ -287,6 +287,8 @@ func ParseHPAMetrics(hpa *autoscalingv2beta1.HorizontalPodAutoscaler) ([]*Metric
}
case autoscalingv2beta1.ExternalMetricSourceType:
typeName.Name = metric.External.MetricName
case autoscalingv2beta1.ResourceMetricSourceType:
continue // kube-metrics-adapter does not collect resource metrics
}
if config, ok := configs[typeName]; ok {