-
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
[Obs Alert Table] Refactor alert table registration and change default columns #175119
[Obs Alert Table] Refactor alert table registration and change default columns #175119
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
@maryam-saeidi Nice! Since you made some changes to the slo alerts table configuration, I suggest we update the |
@mgiota For clarification, I didn't change any functionality related to the SLO alert table embeddable, just fixed a bug that I noticed, so everything should work as before. That being said, I appreciate you reviewing this PR to make sure that's the case. |
@maryam-saeidi Exactly as you said. I just wanted to verify that SLO alerts embeddable will stay intact. I tested it and works fine! Your PR fixes a bug, where flyout wouldn't open when clicking on the alert reason on the SLO alerts table embeddable. This bug was introduced with this PR. Here's the new issue I created for writing tests for the SLO alerts table embeddable. |
...plugins/observability/public/components/alerts_table/register_alerts_table_configuration.tsx
Outdated
Show resolved
Hide resolved
...plugins/observability/public/components/alerts_table/register_alerts_table_configuration.tsx
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.
approve for Infra changes ✨
@maryam-saeidi Can we show "below 10" or "above 10" in the "Threshold" column instead of only threshold value? It will be easy to read Observed and Threshold values with this info. WDYT? |
We want to show the difference instead of the threshold based on Maciej's input, but since we need to discuss with ResponseOps team to see what is the best way to add this field, I created a separate ticket for it. Feel free to add a comment to this ticket if you have a different suggestion for that column then we can discuss it with Maciej.
When discussing with Maciej, we wanted to show a different source depending on what rule type is selected, so for now, I am just showing the group by field in that column. In case we want to show multiple fields we need to discuss it with ResponseOps and also come up with a list of fields per rule type, which I have this ticket for this topic. |
@XavierM To check the alert table loading. |
It makes sense to show group by fields in Source. The Inventory rule doesn't have explicit group by field in UI, but it does grouping based on node type selected (Hosts, Kubernetes Pods, etc.). I think it falls under same category as group by fields, and would be useful to show this info in Source. If we want to make source clickable in future, we will also need this information extracted from Inventory alert.
I see. Do you mean we will replace the Threshold column with Diff column or both Threshold and Diff columns will exist? |
I used
Diff will replace the threshold and we will show the threshold information on hover. |
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. Thanks for the changes to cover Inventory rule as well.
sort: [ | ||
{ | ||
[TIMESTAMP]: { | ||
[ALERT_DURATION]: { |
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.
@mgiota, @umbopepato found the cause of the forever loading issue and it was due to sorting based on a field that we didn't have in the default columns.
Great finding @umbopepato 💪🏻
@maryam-saeidi The PR is missing version label. |
You mean the version that we want this change to be merged? It will be added automatically. |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
…t columns (elastic#175119) Closes elastic#174239 ## Summary This PR refactors the alert table registrations and registers a new alert table for the rule details page. This PR also fixes the SLO embeddable alert table issue by opening the flyout when the user clicks on the reason. Here is the old vs the new table: |Old alert table|New alert table| |---|---| |![image](https://github.com/elastic/kibana/assets/12370520/0289dc2d-b6e8-4727-96fa-b2cf6485e8e5)|![image](https://github.com/elastic/kibana/assets/12370520/226fe529-5ee0-4f5c-9e9f-5ee782c8afe6)| ## 🧪 How to test - Create some alerts and check the alert table on the alerts page, it should - have 2 hours time range instead of 15 mins - show the following fields - Triggered - Duration - Rule name - on hover: it shows rule category - Group - Observed value - Threshold - Tags - Check one of the rules page alert tables, it should not show the rule name column by default - Create an SLO and check the related alert table embeddable - Clicking on the reason should show the flyout (this was the fix in this PR) - Everything should work as before ## What will be covered in the future PRs - [ ] Making sure all rules set the `threshold` field - [ ] Adding a column with difference (Needs to be discussed with ResponseOps team) - [ ] Having source column instead of group by field (Needs to be discussed with @maciejforcone )
Closes #174239
Summary
This PR refactors the alert table registrations and registers a new alert table for the rule details page. This PR also fixes the SLO embeddable alert table issue by opening the flyout when the user clicks on the reason.
Here is the old vs the new table:
🧪 How to test
What will be covered in the future PRs
threshold
field