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

Add a metric to measure how long resolving policy templates take #81

Conversation

ChunxiAlexLuo
Copy link
Contributor

@ChunxiAlexLuo ChunxiAlexLuo force-pushed the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch from 4ce0810 to 1a0710a Compare November 23, 2022 21:44
@ChunxiAlexLuo ChunxiAlexLuo force-pushed the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch from 6c9ba99 to 873cd66 Compare November 29, 2022 20:07
@gparvin gparvin requested review from JustinKuli and removed request for mprahl December 2, 2022 14:36
Copy link
Member

@gparvin gparvin left a comment

Choose a reason for hiding this comment

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

Can we get a test added for this?

Copy link
Member

@JustinKuli JustinKuli left a comment

Choose a reason for hiding this comment

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

We might want this behind a flag like #77 has, so the metric could be turned off.

controllers/configurationpolicy_controller.go Outdated Show resolved Hide resolved
@ChunxiAlexLuo ChunxiAlexLuo force-pushed the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch from 693b5b9 to a30de0a Compare December 13, 2022 05:17
@ChunxiAlexLuo ChunxiAlexLuo force-pushed the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch 8 times, most recently from 0906e17 to 8919ccf Compare December 13, 2022 15:10
Signed-off-by: Chunxi Luo <chuluo@redhat.com>
@ChunxiAlexLuo ChunxiAlexLuo force-pushed the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch from babf6c0 to ff0381c Compare December 13, 2022 15:22
@ChunxiAlexLuo
Copy link
Contributor Author

STEP: Checking metric endpoint for policy template counter for policy policy-update-referenced-object
STEP: Policy policy-update-referenced-object total template process counter : 5
STEP: Policy policy-update-referenced-object total template process seconds : 0.010091988

Copy link
Member

@gparvin gparvin left a comment

Choose a reason for hiding this comment

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

Thanks Alex, this looks good.

@openshift-ci
Copy link

openshift-ci bot commented Dec 13, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ChunxiAlexLuo, gparvin

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:
  • OWNERS [ChunxiAlexLuo,gparvin]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8695a8d into open-cluster-management-io:main Dec 13, 2022
@ChunxiAlexLuo ChunxiAlexLuo deleted the Add-a-metric-to-measure-how-long-resolving-policy-templates-take branch December 13, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants