-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix metrics #4506
Fix metrics #4506
Conversation
Fix 'invalid number of resources from the sidecar' error
Codecov Report
@@ Coverage Diff @@
## master #4506 +/- ##
==========================================
+ Coverage 46.42% 46.44% +0.01%
==========================================
Files 209 209
Lines 9641 9646 +5
Branches 107 107
==========================================
+ Hits 4476 4480 +4
- Misses 4892 4893 +1
Partials 273 273
Continue to review full report at Codecov.
|
I think that in the long run, we have two options:
I have done the first to show sparklines. The second approach is used to silence the single errors that occur during scraping cumulative metrics. |
@maciaszczykm Solution lgtm for now, but CI is squawking on a goimports issue: https://travis-ci.org/kubernetes/dashboard/jobs/608704284#L1314 |
PTAL |
/lgtm Thanks again for tackling this |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jeefy, maciaszczykm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I use v2.0.0-beta6, but i still can't see cpu and mem usage in dashboard.
|
@RedzRedz same on v2.0.0-beta7 |
Same error on v2.0.0-beta8 2019/12/08 20:32:03 Cannot get metrics: received 34 resources from sidecar instead of 36 I have 1 Job and 1 CronJob Pod in Terminated: Completed status. |
The error itself is not a problem if rest of the graphs show up. There is no data for completed resources anymore and that is this "error".
In that case you should be able to see graphs for 34 resources which is totally fine. We will work on improving this later, the message should not be even there and we should not "expect" data for completed resources. |
@maciaszczykm |
That is strange, can you open a new issue? |
Still getting |
Have you installed |
Yes, metrics-server is running. |
Same with me, running the latest release beta8, Unable to get any metrics on any page, Attached sample logs from dashboard.
Note: I have installed cleanly, by following the recommended yaml file mentioned in the release section. |
Thank you sir, i fix the problem. Because i dont install metrics server.
After i install metrics server, i can see cpu and memory usage in dashboard.
Its my problem.
…------------------ 原始邮件 ------------------
发件人: "Paul K."<notifications@github.com>;
发送时间: 2019年12月9日(星期一) 晚上11:39
收件人: "kubernetes/dashboard"<dashboard@noreply.github.com>;
抄送: "1019778654"<1019778654@qq.com>; "Mention"<mention@noreply.github.com>;
主题: Re: [kubernetes/dashboard] Fix metrics (#4506)
Still getting Cannot get metrics: received 0 resources from sidecar instead of 10 on v2.0.0b8, no CPU usage and memory usage graphs on dashboard.
Any tips?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have confirmed, I have installed the metric-server, in kube-system namespace, following helm charts - https://github.com/helm/charts/tree/master/stable/metrics-server, And updated to latest. Still no metrics on the dashboard. I have verified that kubectl top also working, which means the metric server is working as expected. |
My metric server is running with |
Fixes #4145.