-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: Increase reconcile metric only if SSP CR was not changed #950
Conversation
The metric "kubevirt_ssp_common_templates_restored_total" should be increased if user changes a template and the operator restores it back to what it should be. If the SSP CR is changed, for example one of the labels that are propagated to the templates are changed, then the reconciliation should not increase the metric. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Quality Gate passedIssues Measures |
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.
/approve
Looks good to me. But allow me a question, is there really a benefit to exposing this metric at all?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix 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 |
I think it is a question for @machadovilaca or @sradco . |
This metric is used for an alert. |
Let me rephrase, is there a benefit to having that alert? |
This is not for me or @machadovilaca to decide. From what I understand the alert is educational, But I see it has "warning" severity. I think it should be "info" if you keep it, since it doesn't impact the SSP operator functionality or even puts it at risk of losing functionality. https://github.com/kubevirt/monitoring/blob/main/docs/runbooks/SSPCommonTemplatesModificationReverted.md |
@sradco Thanks for the clarification. I don't see a benefit in this alert to be honest. We should reevaluate the need for it. Also, you are right, it should be of severity info. |
I've opened a new issue for us to reevaluate which metrics are needed: #956 |
/lgtm |
/cherry-pick release-v0.19 |
@akrejcir: new pull request created: #959 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:
The metric
kubevirt_ssp_common_templates_restored_total
should be increased if user changes a template and the operator restores it back to what it should be.If the SSP CR is changed, for example one of the labels that are propagated to the templates are changed, then the reconciliation should not increase the metric.
Fixes: https://issues.redhat.com/browse/CNV-39928
Release note: