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
support scheduler_plugin_execution_duration_seconds
in scheduler_perf
#124578
support scheduler_plugin_execution_duration_seconds
in scheduler_perf
#124578
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sanposhiho 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 |
e8952a6
to
c72b688
Compare
But it is true that The rest part looks good to me and should be ok. |
I believe we should keep a general solution like |
/cc @utam0k |
) | ||
|
||
var ( | ||
defaultMetricsCollectorConfig = metricsCollectorConfig{ | ||
Metrics: map[string]*labelValues{ | ||
Metrics: map[string][]*labelValues{ |
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.
I wonder if the metrics in scheduler-perf are under control like other metrics. It means we should list stable metrics.
https://kubernetes.io/docs/reference/instrumentation/metrics/#list-of-stable-kubernetes-metrics
WDYT? @logicalhan
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.
This is a bit out of responsibility in this PR, but let me ask you a question for our future.
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.
I don't think we're going to be able to parse this file..
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.
It looks... challenging from a static analysis perspective.
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.
Probably I don't understand what @utam0k means. Why should we in the first place actually?
All metrics used in scheduler_perf are existing metrics that are exposed from scheduler, not something like scheduler_perf's original metrics.
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.
Sorry you are right.
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
LGTM label has been added. Git tree hash: 88247f8c3a1eca07d952be03a2694f23070584f4
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
support
scheduler_plugin_execution_duration_seconds
in scheduler_perf, which visualizes which plugin is how much slower.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
I confirmed that it's working expectedly at local machine. The output would be like following.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: