[OBX-UX-MGTM] Add stale alert insight #215332
Conversation
...k/solutions/observability/plugins/observability/public/pages/alert_details/alert_details.tsx
Outdated
Show resolved
Hide resolved
...ns/observability/plugins/observability/public/pages/alert_details/components/state_alert.tsx
Outdated
Show resolved
Hide resolved
...ns/observability/plugins/observability/public/pages/alert_details/components/state_alert.tsx
Outdated
Show resolved
Hide resolved
|
This is looking good, can we add "EBT" (event-based telemetry) for the appearance of the callout, as well as for clicks on each of the actions? |
@jasonrhodes, it's the case for the clicks on each of the actions (Edit rule, Mark as untracked), It will report EBT on the click event using |
I added teckEvent when the callout appears. |
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
cauemarcondes
left a comment
There was a problem hiding this comment.
Obs shared changes LGTM
benakansara
left a comment
There was a problem hiding this comment.
LGTM!
I think we need to update the copy and stale criteria (to only check number of days) as per #213003 (comment)
|
@fkanout please change "Edit rule" to secondary button style, just like in the mockup:
|
|
Starting backport for target branches: 9.0 https://github.com/elastic/kibana/actions/runs/14132343260 |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
cc @fkanout |
## Summary If fixes elastic#213003 by adding a stale alert insight to the alert details page ### The heuristics to show the stale alert callout are: 1. The alert has been active for more than 5 days <del> 2. The alert has no cases associated with it</d> <del> 3. The rule is snoozed with no notifications</d> ### Callout stale alert - First Iteration Preview <img width="1193" alt="Screenshot 2025-03-28 at 13 11 21" src="https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075" /> https://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8 --------- (cherry picked from commit 4bbfc85)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary If fixes elastic#213003 by adding a stale alert insight to the alert details page ### The heuristics to show the stale alert callout are: 1. The alert has been active for more than 5 days <del> 2. The alert has no cases associated with it</d> <del> 3. The rule is snoozed with no notifications</d> ### Callout stale alert - First Iteration Preview <img width="1193" alt="Screenshot 2025-03-28 at 13 11 21" src="https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075" /> https://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8 ---------
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
added |
|
@jasonrhodes @benakansara I am confused a bit here regarding skipping this backport. I am trying to backport this PR and I have a few conflicts to resolve. One of them was in |
|
@mgiota We had originally |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary If fixes elastic#213003 by adding a stale alert insight to the alert details page ### The heuristics to show the stale alert callout are: 1. The alert has been active for more than 5 days <del> 2. The alert has no cases associated with it</d> <del> 3. The rule is snoozed with no notifications</d> ### Callout stale alert - First Iteration Preview <img width="1193" alt="Screenshot 2025-03-28 at 13 11 21" src="https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075" /> https://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8 --------- (cherry picked from commit 4bbfc85)
# Backport This will backport the following commits from `main` to `8.19`: - [[OBX-UX-MGTM] Add stale alert insight (#215332)](#215332) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Faisal Kanout","email":"faisal.kanout@elastic.co"},"sourceCommit":{"committedDate":"2025-03-28T15:26:19Z","message":"[OBX-UX-MGTM] Add stale alert insight (#215332)\n\n## Summary\n\nIf fixes #213003 by adding a\nstale alert insight to the alert details page\n\n ### The heuristics to show the stale alert callout are:\n 1. The alert has been active for more than 5 days\n<del> 2. The alert has no cases associated with it</d>\n<del> 3. The rule is snoozed with no notifications</d>\n\n### Callout stale alert - First Iteration Preview\n<img width=\"1193\" alt=\"Screenshot 2025-03-28 at 13 11 21\"\nsrc=\"https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075\"\n/>\n\n\n\n\n\n\nhttps://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8\n\n---------","sha":"4bbfc85ebdc63663af7473fd7ce1e4f8d3911ee5","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0"],"title":"[OBX-UX-MGTM] Add stale alert insight ","number":215332,"url":"https://github.com/elastic/kibana/pull/215332","mergeCommit":{"message":"[OBX-UX-MGTM] Add stale alert insight (#215332)\n\n## Summary\n\nIf fixes #213003 by adding a\nstale alert insight to the alert details page\n\n ### The heuristics to show the stale alert callout are:\n 1. The alert has been active for more than 5 days\n<del> 2. The alert has no cases associated with it</d>\n<del> 3. The rule is snoozed with no notifications</d>\n\n### Callout stale alert - First Iteration Preview\n<img width=\"1193\" alt=\"Screenshot 2025-03-28 at 13 11 21\"\nsrc=\"https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075\"\n/>\n\n\n\n\n\n\nhttps://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8\n\n---------","sha":"4bbfc85ebdc63663af7473fd7ce1e4f8d3911ee5"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215332","number":215332,"mergeCommit":{"message":"[OBX-UX-MGTM] Add stale alert insight (#215332)\n\n## Summary\n\nIf fixes #213003 by adding a\nstale alert insight to the alert details page\n\n ### The heuristics to show the stale alert callout are:\n 1. The alert has been active for more than 5 days\n<del> 2. The alert has no cases associated with it</d>\n<del> 3. The rule is snoozed with no notifications</d>\n\n### Callout stale alert - First Iteration Preview\n<img width=\"1193\" alt=\"Screenshot 2025-03-28 at 13 11 21\"\nsrc=\"https://github.com/user-attachments/assets/638e4926-483b-4728-8580-50ea8872a075\"\n/>\n\n\n\n\n\n\nhttps://github.com/user-attachments/assets/55717eff-27e9-43a3-95c7-7d41b74f1ff8\n\n---------","sha":"4bbfc85ebdc63663af7473fd7ce1e4f8d3911ee5"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Faisal Kanout <faisal.kanout@elastic.co>

Summary
If fixes #213003 by adding a stale alert insight to the alert details page
The heuristics to show the stale alert callout are:
2. The alert has no cases associated with it
3. The rule is snoozed with no notificationsCallout stale alert - First Iteration Preview
Screen.Recording.2025-03-20.at.13.11.06.mov