Merge pull request #114802 from moshe010/pod-resource-metrics

kubelet podresource: fix GetAllocatableResources metrics
This commit is contained in:
Kubernetes Prow Robot 2023-01-11 06:43:44 -08:00 committed by GitHub
commit 6f6c468168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,6 @@ func (p *v1PodResourcesServer) GetAllocatableResources(ctx context.Context, req
return nil, fmt.Errorf("Pod Resources API GetAllocatableResources disabled")
}
metrics.PodResourcesEndpointRequestsTotalCount.WithLabelValues("v1").Inc()
return &v1.AllocatableResourcesResponse{
Devices: p.devicesProvider.GetAllocatableDevices(),
CpuIds: p.cpusProvider.GetAllocatableCPUs(),