Skip to content

rectify health score to count only unique alerts#3732

Open
yati1998 wants to merge 1 commit intored-hat-storage:mainfrom
yati1998:score-error
Open

rectify health score to count only unique alerts#3732
yati1998 wants to merge 1 commit intored-hat-storage:mainfrom
yati1998:score-error

Conversation

@yati1998
Copy link
Member

@yati1998 yati1998 commented Mar 9, 2026

Currentyl the health score calculation counts 3
different alerts for node latency on different
nodes which is not required.
This commit rectifies that error and counts
only unique alert names

Currentyl the health score calculation counts 3
different alerts for node latency on different
nodes which is not required.
This commit rectifies that error and counts
only unique alert names

Signed-off-by: yati1998 <ypadia@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 9, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yati1998
Once this PR has been reviewed and has the lgtm label, please assign agarwal-mudit for approval. For more information see the 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

@yati1998
Copy link
Member Author

Screenshot From 2026-03-12 17-35-56 Screenshot From 2026-03-12 17-37-49

Added 2 screenshots that show the PR is working correctly. Even if the alert for nodes was ended, it was counting on it and additionally, it was counting alerts for 3 different nodes separately. Now it is resolved with this change.

continue
}

seenAlerts[alertName] = severity
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to store the severity as it is not being accessed anywhere?

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