-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ResponseOps][Alerting] A redundant summary alert is shown on rule details alerts list #150088
[ResponseOps][Alerting] A redundant summary alert is shown on rule details alerts list #150088
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
x-pack/plugins/alerting/server/rules_client/methods/get_alert_summary.ts
Outdated
Show resolved
Hide resolved
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.
LGTM.
Tested locally, works as expected.
Asked a question but if the current filter is ok, it can be ignored.
…lexi/kibana into bug/remove-redundant-summary-alert
x-pack/plugins/alerting/server/rules_client/methods/get_alert_summary.ts
Outdated
Show resolved
Hide resolved
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.
Verified this works as expected. Left some nits about unit tests and also wondering if we have functional tests for the alert summary feature? Seems like this type of change should've triggered some sort of failure in a FT that looks at event log output (which we normally add for new features). If there is not, can we make a followup issue to address the functional testing for summaries?
? { | ||
alerting: { | ||
...(params.instanceId ? { instance_id: params.instanceId } : {}), | ||
...(group ? { action_group_id: group } : {}), | ||
...(alertSummary |
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.
nit: maybe a unit test for this?
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.
Resolved in this commit 4889843
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
3 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
11 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Resolves #149824
Summary
Added a filter to filter out logs that have an action set to
execute-action
in thealert_summary
route on the rules detailspage.
Updated how we log summary alerts by removing the
alertId
andgroup
fields. I added a new summary field tokibana.alerting
that includes the counts for new, ongoing, and recovered alerts.Checklist
To verify
Alerts
tab. Verify that the summary alert is not listed in the table.This is a screen shot of the table in the issue:
We want to verify that the last row is no longer there.