Skip to content
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

Automated cherry pick of #5972: fix the issue of missing workqueue metrics in the Karmada controller #5981

Conversation

XiShanYongYe-Chang
Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang commented Dec 26, 2024

Cherry pick of #5972 on release-1.11.
#5972: remove apiserver dependency in resourceinterpreter
For details on the cherry pick process, see the cherry pick requests page.

`karmada-controller-manager`: Fixed the issue of missing work queue metrics.

@karmada-bot karmada-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 26, 2024
@XiShanYongYe-Chang XiShanYongYe-Chang changed the title Automated cherry pick of #5972: remove apiserver dependency in resourceinterpreter Automated cherry pick of #5972: fix the issue of missing workqueue metrics in the Karmada controller Dec 26, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 26, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 65.00000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 31.51%. Comparing base (3c53240) to head (f16af9a).

Files with missing lines Patch % Lines
...interpreter/customized/webhook/serviceresolvers.go 66.66% 13 Missing ⚠️
...sourceinterpreter/customized/webhook/customized.go 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.11    #5981      +/-   ##
================================================
+ Coverage         31.48%   31.51%   +0.02%     
================================================
  Files               644      645       +1     
  Lines             54288    54327      +39     
================================================
+ Hits              17094    17121      +27     
- Misses            36124    36136      +12     
  Partials           1070     1070              
Flag Coverage Δ
unittests 31.51% <65.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: changzhen <changzhen5@huawei.com>
@XiShanYongYe-Chang XiShanYongYe-Chang force-pushed the automated-cherry-pick-of-#5972-upstream-release-1.11 branch from 5146a84 to f16af9a Compare December 26, 2024 07:25
@XiShanYongYe-Chang
Copy link
Member Author

karmada-controller-manager test metrics:

# curl http://127.0.0.1:8080/metrics | grep workqueue_depth
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP workqueue_depth Current depth of workqueue
# TYPE workqueue_depth gauge
workqueue_depth{name="binding-eviction"} 0
workqueue_depth{name="cluster"} 0
workqueue_depth{name="cluster-binding-eviction"} 0
workqueue_depth{name="clusterPropagationPolicy reconciler"} 0
workqueue_depth{name="clusterResourceBinding_status_controller"} 0
workqueue_depth{name="clusterresourcebinding"} 0
workqueue_depth{name="cronfederatedhpa"} 0
workqueue_depth{name="dependencies resource detector"} 0
workqueue_depth{name="deployment-replicas-syncer"} 0
workqueue_depth{name="endpointslice-collect"} 0
workqueue_depth{name="federatedhpa"} 0
workqueue_depth{name="federatedresourcequota"} 0
workqueue_depth{name="hpa-scale-target-marker"} 0
workqueue_depth{name="multiclusterservice"} 0
workqueue_depth{name="namespace"} 0
workqueue_depth{name="propagationPolicy reconciler"} 0
workqueue_depth{name="remedy-controller"} 0
workqueue_depth{name="resource detector"} 0
workqueue_depth{name="resourceBinding_status_controller"} 0
workqueue_depth{name="resourcebinding"} 0
workqueue_depth{name="scale target worker"} 0
workqueue_depth{name="service-export"} 0
workqueue_depth{name="serviceimport"} 0
workqueue_depth{name="work"} 0
workqueue_depth{name="work-status"} 0
workqueue_depth{name="workload-rebalancer"} 0
100  107k    0  107k    0     0  29.8M      0 --:--:-- --:--:-- --:--:-- 34.9M

@XiShanYongYe-Chang
Copy link
Member Author

karmada-agent test metrics:

# curl http://127.0.0.1:8080/metrics | grep workqueue_depth
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15662    0 15662    0     0  5482k      0 --:-# HELP workqueue_depth Current depth of workqueue
# TYPE workqueue_depth gauge
-workqueue_depth{name="endpointslice-collect"} 0
:workqueue_depth{name="service-export"} 0
-workqueue_depth{name="work-status"} 0
- --:--:-- --:--:-- 7647k

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 26, 2024
@karmada-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 26, 2024
@karmada-bot karmada-bot merged commit 0d4da5d into karmada-io:release-1.11 Dec 26, 2024
12 checks passed
@XiShanYongYe-Chang XiShanYongYe-Chang deleted the automated-cherry-pick-of-#5972-upstream-release-1.11 branch December 27, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants