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

HOSTEDCP-1008: Add NodePoolTransitionSeconds metric #2631

Merged

Conversation

muraee
Copy link
Contributor

@muraee muraee commented Jun 1, 2023

What this PR does / why we need it:
records time in seconds it took from NodePool creation until a given condition transitions to true, for the following conditions:

  • NodePoolReachedIgnitionEndpoint
  • NodePoolAllMachinesReadyConditionType
  • NodePoolAllNodesHealthyConditionType

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 #https://issues.redhat.com/browse/HOSTEDCP-1008

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 1, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 1, 2023

@muraee: This pull request references HOSTEDCP-1008 which is a valid jira issue.

In response to this:

What this PR does / why we need it:
records time in seconds it took from NodePool creation until a given condition transitions to true, for the following conditions:

  • NodePoolReachedIgnitionEndpoint
  • NodePoolAllMachinesReadyConditionType
  • NodePoolAllNodesHealthyConditionType

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 #https://issues.redhat.com/browse/HOSTEDCP-1008

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@netlify
Copy link

netlify bot commented Jun 1, 2023

Deploy Preview for hypershift-docs ready!

Name Link
🔨 Latest commit 84da8f5
🔍 Latest deploy log https://app.netlify.com/sites/hypershift-docs/deploys/647880bb6cb32a000869b33b
😎 Deploy Preview https://deploy-preview-2631--hypershift-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot requested review from enxebre and sjenning June 1, 2023 11:29
@openshift-ci openshift-ci bot added area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release and removed do-not-merge/needs-area labels Jun 1, 2023
observe time in seconds it took from NodePool creation until a given condition transitions to true
@muraee muraee force-pushed the nodepool-transitions-metric branch from 84da8f5 to 85d2307 Compare June 2, 2023 14:19
@muraee
Copy link
Contributor Author

muraee commented Jun 5, 2023

/retest-required

NodePoolTransitionSecondsMetricName = "hypershift_nodepools_transition_seconds"
nodePoolTransitionSeconds = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: NodePoolTransitionSecondsMetricName,
Help: "Time in seconds it took from NodePool creation until a given condition transitions to true",
Copy link
Contributor

@imain imain Jun 5, 2023

Choose a reason for hiding this comment

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

Do we know the "given condition"? Could this be explained better? I think this ends up in the UI right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are tracking multiple conditions with this metric, each condition will have its own time series with the condition name/type set as a label.
the help won't show in Grafana UI as far as I know.

Copy link
Member

@bryan-cox bryan-cox left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 9, 2023
@enxebre
Copy link
Member

enxebre commented Jun 19, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 19, 2023

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 19, 2023

@muraee: all tests passed!

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.

@openshift-merge-robot openshift-merge-robot merged commit 8266c86 into openshift:main Jun 19, 2023
12 checks passed
@muraee
Copy link
Contributor Author

muraee commented Jun 30, 2023

/cherry-pick release-4.13

@openshift-cherrypick-robot

@muraee: new pull request created: #2758

In response to this:

/cherry-pick release-4.13

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.

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. area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants