-
Notifications
You must be signed in to change notification settings - Fork 891
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
clean up metrics for scheduler, descheduler and estimator #2899
Conversation
a303261
to
a184892
Compare
There is something wrong with the e2e environment again. |
Yeah. Just re-run it. echo from https://github.com/karmada-io/karmada/actions/runs/3603267239/jobs/6071407672:
|
/assign |
All Kubernetes metrics are emitted from Metrics Stability Framework, and each metric will be assigned a
Do you want to get more metrics from the |
Yes, now we cannot get the metrics of |
Using |
Just quickly went through the Kubernetes code, unfortunately, the Metrics Stability Framework can not be imported by other projects. The main reason is the framework needs to know the current version to figure out if specific metrics should be hidden or not. But, in Karmada, we can't get the version because the version is set only during the k/k building phase. |
Thanks for reminding, I believe I should find another way to report the workqueue metrics. |
a184892
to
cf17626
Compare
I'm trying to set all metrics with registry in |
Codecov Report
@@ Coverage Diff @@
## master #2899 +/- ##
=======================================
Coverage 38.51% 38.52%
=======================================
Files 205 205
Lines 18814 18814
=======================================
+ Hits 7247 7248 +1
Misses 11137 11137
+ Partials 430 429 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This lint should be ignored since we must insure |
cc @Poor12 for help. |
It works well at my side. It mainly solves this problem by uniformly registering indicators to the controller-runtime registry. |
c0f341b
to
23d59ab
Compare
Signed-off-by: Garrybest <garrybest@foxmail.com>
23d59ab
to
c747cbc
Compare
Hmm, I'm ok with that disable the checks temporarily. |
I have went through the kubernetes code in |
That's right. So there are 2 things we need to do:
I think this PR fix these two steps. |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
Signed-off-by: Garrybest garrybest@foxmail.com
What type of PR is this?
/kind cleanup
/kind feature
What this PR does / why we need it:
Note that scheduler, descheduler and estimator does not use
controller-runtime
, so we'd better use metrics pkg ofk8s.io/component-base/metrics
instead of primitive prometheus pkg. In kubernetes, allworkqueue
metrics is registered ink8s.io/component-base/metrics
, so that we could get extraworkqueue
metrics in our metric http handler.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: