Open vivanov83 opened 3 years ago
Same here. There is an error in the console:
However, the api-kube/apis/metrics.k8s.io/v1beta1/pods
request seems to return the pod usage data :
{
"kind": "PodMetricsList",
"apiVersion": "metrics.k8s.io/v1beta1",
"metadata": {
"selfLink": "/apis/metrics.k8s.io/v1beta1/pods"
},
"items": [
{
"metadata": {
"name": "cert-manager-7998c69865-64xkm",
"namespace": "cert-manager",
"selfLink": "/apis/metrics.k8s.io/v1beta1/namespaces/cert-manager/pods/cert-manager-7998c69865-64xkm",
"creationTimestamp": "2021-06-15T12:54:35Z"
},
"timestamp": "2021-06-15T12:54:35Z",
"window": "5m0s",
"containers": [
{
"name": "cert-manager",
"usage": {
"cpu": "4m",
"memory": "41384Ki"
}
}
]
},
{
"metadata": {
"name": "cert-manager-cainjector-7b744d56fb-gfvlg",
"namespace": "cert-manager",
"selfLink": "/apis/metrics.k8s.io/v1beta1/namespaces/cert-manager/pods/cert-manager-cainjector-7b744d56fb-gfvlg",
"creationTimestamp": "2021-06-15T12:54:35Z"
},
"timestamp": "2021-06-15T12:54:35Z",
"window": "5m0s",
"containers": [
{
"name": "cert-manager",
"usage": {
"cpu": "1m",
"memory": "43476Ki"
}
}
]
},
...
I've just tried 5.0beta* and it seems to be working there.
Got similar error in 5.1.1 but with different message:
Those metrics are the single place within Lens that we use kube state metrics.
Seems to be working as expected in Lens: 5.3.3-latest.20211223.1 Electron: 13.6.1 Chrome: 91.0.4472.164 Node: 14.16.0
The latest m aster also works as expected.
But fails on local Minikube with 40 4
@DmitriyNoa does your minikube have kube state metrics installed?
Describe the bug CPU and Memory consumption by pod are not displayed
To Reproduce Steps to reproduce the behavior:
Expected behavior Consumed resources by pod should be visible
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):