-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add metrics interfaces at edge #1573
Conversation
Metrics-server can use
|
It's ready to review now, ptal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job fishxu!
Overall, I am good with the PR, here is the early comments from me, may not valid though,
- TBH, this PR scared me as it is too large :), can we split it to more small commits (specially, second "add cadvisor") for better review?
- might need some doc, for example, how to enable/disable the feature, how to collect data etc.
- size of edgecore is getting bigger and bigger, I am not sure whether we are moving in the right direction with the more and more new features added.
- we might need a release cycle to make kubeedge more stable, more refined code, doc improvement, feature enhancement etc.
will look into the details later.
c44eb52
to
6c1fb52
Compare
Pr has been rebased, ptal @kevin-wangzefeng @chendave @kadisi |
/lgtm thanks @fisherxu |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kevin-wangzefeng 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 |
/ref #1735 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Previously, edgecore did not support kubelet's metrics interface, and users could not view monitoring data at the edge.
This PR integrates cadvisor-based metrics interface into edged, and users can collect monitoring data.
Notes: the metrics interface is now only accessed on localhost based insecure server now.
Next step, we will support metric-server in the cloud, and support collect monitoring data from the edge through the cloud/edge hub.
And the edgecore binary size change(Uncompressed):
92M -> 105M
The memory change:
(0 pod): 64M -> 72M
(100 pods): 72M ->96M
Disable metrics through setting
EnableMetric
to false:(0 pod): 64M
(100 pods): 80M
Xref: #1561
Special notes for your reviewer:
Does this PR introduce a user-facing change?: