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
OCPBUGS-13113: Add ClusterUpgradeDuration metric #2566
OCPBUGS-13113: Add ClusterUpgradeDuration metric #2566
Conversation
@muraee: This pull request references Jira Issue OCPBUGS-13113, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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. |
/jira refresh |
@muraee: This pull request references Jira Issue OCPBUGS-13113, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jiezhao@redhat.com), skipping review request. In response to this:
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. |
a6edee0
to
f61a1cf
Compare
✅ Deploy Preview for hypershift-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
f61a1cf
to
e5482ec
Compare
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
return | ||
} | ||
|
||
newVersion := hc.Status.Version.History[0] |
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.
cc @wking to validate the assumptions about ordering here are valid.
@@ -92,3 +99,27 @@ func clusterVersionRolloutTime(hc *hyperv1.HostedCluster) *float64 { | |||
} | |||
return pointer.Float64(completionTime.Sub(hc.CreationTimestamp.Time).Seconds()) | |||
} | |||
|
|||
func RecordClusterUpgradeDuration(hc *hyperv1.HostedCluster) { |
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.
So just to clarify this would record the whole history every time that is run? which I guess is fine.
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.
right
This is nice! Can you please also include a PR to whitelist the metric here https://gitlab.cee.redhat.com/service/osd-fleet-manager/-/merge_requests/490 and include a panel here https://github.com/openshift/hypershift/tree/main/contrib/metrics |
e5482ec
to
b08c699
Compare
b08c699
to
064dde6
Compare
@muraee: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/retest-required |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, enxebre, muraee 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 |
/lgtm |
@muraee: Jira Issue OCPBUGS-13113: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-13113 has been moved to the MODIFIED state. In response to this:
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. |
/cherry-pick release-4.13 |
@muraee: new pull request created: #2637 In response to this:
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. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)
format, where issue_number might be a GitHub issue, or a Jira story:Fixes #OCPBUGS-13113
Checklist