Skip to content

Conversation

@suleymanakbas91
Copy link

@suleymanakbas91 suleymanakbas91 commented Jul 26, 2022

This PR adds two custom metrics to count the number of ingresses without IngressClassName and the number of routes owned by ingresses no longer managed.

  • pkg/route/ingress/ingress.go: Registers metrics to the KubeRegistry. Moves the logic to determine which ingresses are managed to a separate ingressManaged function.
  • pkg/route/ingress/metrics.go: Implements Registrable interface so that the metrics can be registered to the KubeRegistry. Creates the metrics and implements the collector for the metrics.
  • pkg/route/ingress/metrics_test.go: Adds unit-test for the metrics.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jul 26, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2022

@suleymanakbas91: This pull request references Bugzilla bug 1962502, which is invalid:

  • expected the bug to target the "4.12.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

Bug 1962502: Create custom metrics to list unmanaged Routes and Ingre…

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.

@openshift-ci openshift-ci bot requested review from frobware and knobunc July 26, 2022 16:29
@suleymanakbas91
Copy link
Author

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jul 26, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2022

@suleymanakbas91: This pull request references Bugzilla bug 1962502, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @lihongan

Details

In response to this:

/bugzilla refresh

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.

@openshift-ci openshift-ci bot requested a review from lihongan July 26, 2022 16:30
@suleymanakbas91 suleymanakbas91 force-pushed the route-ingress-metrics branch from 8a8e644 to ae023ca Compare July 29, 2022 09:50
@suleymanakbas91 suleymanakbas91 force-pushed the route-ingress-metrics branch 3 times, most recently from 3ce39c6 to ecda2e3 Compare September 2, 2022 13:44
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 2, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: suleymanakbas91
Once this PR has been reviewed and has the lgtm label, please assign miciah for approval by writing /assign @miciah in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@suleymanakbas91
Copy link
Author

/test all

@suleymanakbas91 suleymanakbas91 changed the title Bug 1962502: Create custom metrics to list unmanaged Routes and Ingre… Bug 1962502: Create custom metrics to list unmanaged Routes and Ingresses without IngressClassName Sep 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 5, 2022

@suleymanakbas91: This pull request references Bugzilla bug 1962502, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @lihongan

Details

In response to this:

Bug 1962502: Create custom metrics to list unmanaged Routes and Ingresses without IngressClassName

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.

1 similar comment
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 5, 2022

@suleymanakbas91: This pull request references Bugzilla bug 1962502, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @lihongan

Details

In response to this:

Bug 1962502: Create custom metrics to list unmanaged Routes and Ingresses without IngressClassName

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.

@suleymanakbas91 suleymanakbas91 marked this pull request as ready for review September 5, 2022 17:31
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2022
@openshift-ci openshift-ci bot requested a review from Miciah September 5, 2022 17:31
@quarterpin
Copy link

/label qe-approved

Verified via pre-merge workflow. More details can be found in : https://bugzilla.redhat.com/show_bug.cgi?id=1962502#c4

@candita
Copy link

candita commented Sep 7, 2022

/assign
/assign @rfredette

@suleymanakbas91
Copy link
Author

/retest

1 similar comment
@candita
Copy link

candita commented Sep 15, 2022

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 15, 2022

@suleymanakbas91: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@candita
Copy link

candita commented Sep 16, 2022

@suleymanakbas91 can you explain why was the decision made to add the metrics here instead of in cluster-ingress-operator?

@atiratree
Copy link
Member

@suleymanakbas91 fyi #240 removes these controllers from OCM repo. Any future PRs should go to https://github.com/openshift/route-controller-manager from now on

@suleymanakbas91
Copy link
Author

Moving this to route-controller-manager: openshift/route-controller-manager#8

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 5, 2022

@suleymanakbas91: This pull request references Bugzilla bug 1962502. The bug has been updated to no longer refer to the pull request using the external bug tracker.

Details

In response to this:

Bug 1962502: Create custom metrics to list unmanaged Routes and Ingresses without IngressClassName

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.

@suleymanakbas91 suleymanakbas91 deleted the route-ingress-metrics branch October 5, 2022 14:57
@candita
Copy link

candita commented Oct 6, 2022

I will reassign myself and Ryan to the new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants