Repository navigation
Change kibana.alert.evaluation.threshold unit to microseconds - #158703
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
|
Pinging @elastic/apm-ui (Team:APM) |
fkanout
left a comment
There was a problem hiding this comment.
The latency chart threshold annotation is fixed too. Nice work @maryam-saeidi !
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
| value: formatAlertEvaluationValue( | ||
| alert?.fields[ALERT_RULE_TYPE_ID], | ||
| toMicroseconds(alert?.fields[ALERT_EVALUATION_THRESHOLD]) | ||
| alert?.fields[ALERT_EVALUATION_THRESHOLD] |
There was a problem hiding this comment.
It looks like alert?.fields[ALERT_EVALUATION_THRESHOLD] was previously in milliseconds but going forward it will be in microseconds? Where does this happen?
There was a problem hiding this comment.
Here is the change: (next file change in this PR)
[ALERT_EVALUATION_THRESHOLD]: thresholdMicroseconds,
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…c#158703) Resolves elastic#156255 Fixes elastic#158204 Partially reverts elastic#154801 [RFC Document](https://docs.google.com/document/d/1-O6-nqOedrjtTF9mHawd_u-vUdXu06KGI8ic5qNeQPQ/edit?usp=sharing) This PR changes kibana.alert.evaluation.threshold unit to microseconds in AAD. |Case|Screenshot| |----|---| |Saved value in AAD|| |Should show correct information in flyout|| |Should show correct information on alert details page|| |Should show correct information in action message|| |Same unit for value and threshold in the alert table|| - Generate an APM Latency threshold alert - Check the threshold in - Alert's flyout - Alert's table - Alert details page (summary and chart) - Action generated by this alert (cherry picked from commit d13f884)
…c#158703) Resolves elastic#156255 Fixes elastic#158204 Partially reverts elastic#154801 [RFC Document](https://docs.google.com/document/d/1-O6-nqOedrjtTF9mHawd_u-vUdXu06KGI8ic5qNeQPQ/edit?usp=sharing) ## Summary This PR changes kibana.alert.evaluation.threshold unit to microseconds in AAD. |Case|Screenshot| |----|---| |Saved value in AAD|| |Should show correct information in flyout|| |Should show correct information on alert details page|| |Should show correct information in action message|| |Same unit for value and threshold in the alert table|| ## 🧪 How to test - Generate an APM Latency threshold alert - Check the threshold in - Alert's flyout - Alert's table - Alert details page (summary and chart) - Action generated by this alert (cherry picked from commit d13f884) # Conflicts: # x-pack/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/index.tsx # x-pack/plugins/observability/public/components/alerts_flyout_body.tsx
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…158703) (#159013) # Backport This will backport the following commits from `main` to `8.8`: - [Change kibana.alert.evaluation.threshold unit to microseconds (#158703)](#158703) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maryam Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2023-06-01T11:12:21Z","message":"Change kibana.alert.evaluation.threshold unit to microseconds (#158703)\n\nResolves #156255\r\nFixes #158204\r\nPartially reverts #154801\r\n\r\n[RFC\r\nDocument](https://docs.google.com/document/d/1-O6-nqOedrjtTF9mHawd_u-vUdXu06KGI8ic5qNeQPQ/edit?usp=sharing)\r\n\r\n## Summary\r\n\r\nThis PR changes kibana.alert.evaluation.threshold unit to microseconds\r\nin AAD.\r\n\r\n|Case|Screenshot|\r\n|----|---|\r\n|Saved value in\r\nAAD||\r\n|Should show correct information in\r\nflyout||\r\n|Should show correct information on alert details\r\npage||\r\n|Should show correct information in action\r\nmessage||\r\n|Same unit for value and threshold in the alert\r\ntable||\r\n\r\n\r\n## 🧪 How to test\r\n- Generate an APM Latency threshold alert\r\n- Check the threshold in\r\n - Alert's flyout\r\n - Alert's table\r\n - Alert details page (summary and chart)\r\n - Action generated by this alert","sha":"d13f884ec3a4e61fcc23e5594741ec436fa4c4fb","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:APM","Team: Actionable Observability","backport:prev-minor","v8.9.0"],"number":158703,"url":"https://github.com/elastic/kibana/pull/158703","mergeCommit":{"message":"Change kibana.alert.evaluation.threshold unit to microseconds (#158703)\n\nResolves #156255\r\nFixes #158204\r\nPartially reverts #154801\r\n\r\n[RFC\r\nDocument](https://docs.google.com/document/d/1-O6-nqOedrjtTF9mHawd_u-vUdXu06KGI8ic5qNeQPQ/edit?usp=sharing)\r\n\r\n## Summary\r\n\r\nThis PR changes kibana.alert.evaluation.threshold unit to microseconds\r\nin AAD.\r\n\r\n|Case|Screenshot|\r\n|----|---|\r\n|Saved value in\r\nAAD||\r\n|Should show correct information in\r\nflyout||\r\n|Should show correct information on alert details\r\npage||\r\n|Should show correct information in action\r\nmessage||\r\n|Same unit for value and threshold in the alert\r\ntable||\r\n\r\n\r\n## 🧪 How to test\r\n- Generate an APM Latency threshold alert\r\n- Check the threshold in\r\n - Alert's flyout\r\n - Alert's table\r\n - Alert details page (summary and chart)\r\n - Action generated by this alert","sha":"d13f884ec3a4e61fcc23e5594741ec436fa4c4fb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158703","number":158703,"mergeCommit":{"message":"Change kibana.alert.evaluation.threshold unit to microseconds (#158703)\n\nResolves #156255\r\nFixes #158204\r\nPartially reverts #154801\r\n\r\n[RFC\r\nDocument](https://docs.google.com/document/d/1-O6-nqOedrjtTF9mHawd_u-vUdXu06KGI8ic5qNeQPQ/edit?usp=sharing)\r\n\r\n## Summary\r\n\r\nThis PR changes kibana.alert.evaluation.threshold unit to microseconds\r\nin AAD.\r\n\r\n|Case|Screenshot|\r\n|----|---|\r\n|Saved value in\r\nAAD||\r\n|Should show correct information in\r\nflyout||\r\n|Should show correct information on alert details\r\npage||\r\n|Should show correct information in action\r\nmessage||\r\n|Same unit for value and threshold in the alert\r\ntable||\r\n\r\n\r\n## 🧪 How to test\r\n- Generate an APM Latency threshold alert\r\n- Check the threshold in\r\n - Alert's flyout\r\n - Alert's table\r\n - Alert details page (summary and chart)\r\n - Action generated by this alert","sha":"d13f884ec3a4e61fcc23e5594741ec436fa4c4fb"}}]}] BACKPORT-->
Resolves #156255
Fixes #158204
Partially reverts #154801
RFC Document
Summary
This PR changes kibana.alert.evaluation.threshold unit to microseconds in AAD.
🧪 How to test