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

Bug 2232242: Refactoring metrics creation and initialisation #138

Conversation

raghavendra-talur
Copy link
Collaborator

Metrics were previously created regardless of metro-dr or regional-dr. This has now changed, metrics are not created for metro-dr. The metrics instance creation is also moved from DRPC instance creation to updating DRPC condition, this is done so as not to initialize and set the default value as 0.

The values now refer to DRPC status and not VRG. we update DPRC LastGroup statuses based on the availability of VRG lastGroupSyncTime and the Relocate action. In case we do not get VRG, metrics will have the previous or the last known value from DRPC.

Removed 0 value filtering from alerts. So alerts are fired when metrics have zero value which is set based on DRPC lastGroupSynctime.

BZ: 2232242

@openshift-ci
Copy link

openshift-ci bot commented Sep 11, 2023

@raghavendra-talur: Bugzilla bug 2232242 is in a bug group that is not in the allowed groups for this repo.
Allowed groups for this repo are:

  • qe_staff
  • redhat

In response to this:

Bug 2232242: Refactoring metrics creation and initialisation

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
Copy link

openshift-ci bot commented Sep 11, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: raghavendra-talur

The full list of commands accepted by this bot can be found 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

Signed-off-by: rakeshgm <[email protected]>
(cherry picked from commit 05ea1b9)
Signed-off-by: rakeshgm <[email protected]>
(cherry picked from commit c58cd34)
postpone metrics creation till updateResourceCondition
is called. Do not set metrics if metro-dr. skip drpc
lastGroup status for relocate

Signed-off-by: rakeshgm <[email protected]>
(cherry picked from commit c443b6e)
@raghavendra-talur raghavendra-talur merged commit 6a21d69 into red-hat-storage:release-4.14 Sep 12, 2023
12 checks passed
@raghavendra-talur raghavendra-talur deleted the rtalur-backport-1062 branch September 12, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants