Closed tchellomello closed 4 years ago
Just for the documentation purposes, it is still happening on v2.0.0-beta3+0.g677aff93
@tchellomello We are aware, we have a couple of issues with metrics that are not fixed yet. We will work on them.
I also see the CPU/memory graphs not show up if there is a crashlooping pod in the namespace.
The issue is not directly caused by Cron Jobs. [kubernetes-dashboard-76b969b44b-8bvv8] [restful] 2019/07/30 23:10:54 log.go:33: There was an error during transformation to sidecar selector: Resource "cronjob" is not a native sidecar resource type or is not supported
does not appear anymore.
There is an issue with pods created by cron jobs and with crashlooping pods.
@jeefy I think we have a problem with metrics scraper here. When the pod is completed (i.e. job's child) or in a crashed state, we are dealing with 2019/09/05 15:22:04 Skipping metrics because of error: Received invalid number of resources from the sidecar. Expected 3 received 2
. Could you take a look on this as you are more familiar with the code both on the dashboard and scraper side?
I'll take a look at this soon. Thanks!
+1
I just got the same issue with 2.0.0beta4 today. I found this thread by googling the issue. I thought it might be good to share. Thanks for looking at this issue.
Any update, @jeefy?
Dashboard v2.0.0-beta4+0.gf232c589 - Not see any graphs on Cluster -> Nodes page. See graphs on the name space (All namespaces) -> Overview page. kubectl top node --> See performance information per nodes Will be good see memory in percentage also not in Mi
+1 same issue with beta5
We are aware of that. That's why it is not closed.
Thanks for working on this guys. I'm having this problem too.
Do you have solution ?
The bug has been fixed with https://github.com/kubernetes/dashboard/pull/4506 Using 2.0.0-rc2 works. If you still don't get metrics maybe your issue is something else.
i was not able to login anymore after I changed from 2.0.0 to 2.0.0-rc2 and when I was checking the metric scraper pod i got this.
{"level":"error","msg":"Error scraping node metrics: the server could not find the requested resource (get nodes.metrics.k8s.io)","time":"2021-04-18T09:42:42Z"}
And I got stuck on the token page. After I submitted token the dashboard pod returned 200 but it's not redirecting me to the dashboard.
This seems related to issue #3322 but I also tried their solution including using https, nothing worked. When I change back to v2.0.0, i can login but the above error message is still there. Anyone can give a bit hint on what does that message mean?
I experienced the same problem with these as well:
root@kubernetes-master-ubuntu:~# k version Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:58:47Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:52:18Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"linux/amd64"}
https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.0/aio/deploy/recommended.yaml
Dashboard UI screenshot: https://drive.google.com/file/d/1-BPEynBtVV8pq42jZnXjpOOhC2LFgqER/view?usp=sharing
Thank you so much for your work!
Bye: Beci
You need to have metrics-server installed and working correctly.
You need to have metrics-server installed and working correctly.
OK, thank you so much I'm checking!
Environment
I've deployed the kubernetes dashboard as documented at https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta2 and got it working as expected.
The metrics-scaper is working as expected and I can see the graph displayed below:
However, if a namespace has a Cron Job defined, the top 2 graphs (CPU and Memory Usage) are not displayed due to the error below:
Then the dashboard is displayed like this:
Steps to reproduce
Observed result
CPU and Memory Usage graphs are not displayed when a cronjob is listed
Expected result
CPU and Memory Usage graphs should be displayed when a cronjob is listed
Comments