Merge pull request #73946 from dashpole/prometheus_core_metrics

Add kubelet resource metrics v1alpha1 endpoint
This commit is contained in:
Kubernetes Prow Robot
2019-03-07 22:43:28 -08:00
committed by GitHub
103 changed files with 156129 additions and 348 deletions

View File

@@ -454,7 +454,7 @@ func createBatchPodWithRateControl(f *framework.Framework, pods []*v1.Pod, inter
// getPodStartLatency gets prometheus metric 'pod start latency' from kubelet
func getPodStartLatency(node string) (framework.KubeletLatencyMetrics, error) {
latencyMetrics := framework.KubeletLatencyMetrics{}
ms, err := metrics.GrabKubeletMetricsWithoutProxy(node)
ms, err := metrics.GrabKubeletMetricsWithoutProxy(node, "/metrics")
Expect(err).NotTo(HaveOccurred(), "Failed to get kubelet metrics without proxy in node %s", node)
for _, samples := range ms {