-
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
Fix preview chart in APM Latency threshold rule #158439
Fix preview chart in APM Latency threshold rule #158439
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
Pinging @elastic/apm-ui (Team:APM) |
/oblt-deploy |
yes, the groups are not constant. I will check if we can keep the selected groups constant. |
/oblt-deploy |
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.
Tested locally, and it works as expected. However, I left some comments
.../plugins/apm/public/components/alerting/ui_components/chart_preview/chart_preview_helper.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/utils/get_interval_in_seconds.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.
I saw that this file/getIntervalInSeconds function is used in other rules too but with no unit test, I assume it's just working 😄
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.
Added tests 71f62fd
Now worries. And perhaps this is a good indication that the empty state can be improved :) |
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.
I tested it, and it works as expected, in the Alert details page and in the rule flyout. Great job, @benakansara!
Ahh, perfect!! |
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.
all comments made. lgtm 👍
…rt-apm-latency-rule
💚 Build Succeeded
Metrics [docs]Async chunks
Public APIs missing exports
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @benakansara |
Resolves the following for APM Latency threshold rule:
Improvements in the preview chart:
Before
Screen.Recording.2023-05-30.at.09.59.48.mov
After
Screen.Recording.2023-05-30.at.10.14.19.mov