Skip to content

[8.8] Change kibana.alert.evaluation.threshold unit to microseconds (#158703) - #159013

Merged
maryam-saeidi merged 2 commits into
elastic:8.8from
maryam-saeidi:backport/8.8/pr-158703
Jun 5, 2023
Merged

maryam-saeidi merged 2 commits into
elastic:8.8from
maryam-saeidi:backport/8.8/pr-158703

Conversation

@maryam-saeidi

Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 8.8:

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)

## Summary

This PR changes kibana.alert.evaluation.threshold unit to microseconds
in AAD.

|Case|Screenshot|
|----|---|
|Saved value in
AAD|![image](https://github.com/elastic/kibana/assets/12370520/9178031b-a187-4b3e-b6ed-6e67f4e708ce)|
|Should show correct information in
flyout|![image](https://github.com/elastic/kibana/assets/12370520/75ec6664-8e2f-448d-b6d0-dacf01b22ac3)|
|Should show correct information on alert details
page|![image](https://github.com/elastic/kibana/assets/12370520/4fb4b645-b450-48da-bec9-e7064b26258e)|
|Should show correct information in action
message|![image](https://github.com/elastic/kibana/assets/12370520/c103266e-25ef-4c25-a0da-c6ecfd0e4c0a)|
|Same unit for value and threshold in the alert
table|![image](https://github.com/elastic/kibana/assets/12370520/499814bc-9f41-4b94-9b03-18a75a50489f)|

## 🧪 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
@maryam-saeidi maryam-saeidi added the backport This PR is a backport of another PR label Jun 5, 2023
@maryam-saeidi
maryam-saeidi enabled auto-merge (squash) June 5, 2023 10:22
@botelastic botelastic Bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Jun 5, 2023
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:APM)

@ghost

ghost commented Jun 5, 2023

Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@kibana-ci

Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.5MB 3.5MB -44.0B
observability 967.1KB 966.9KB -196.0B
total -240.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
apm 32.8KB 32.8KB -34.0B
observability 56.0KB 56.0KB -70.0B
total -104.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 400 404 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 480 484 +4
total +6

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@maryam-saeidi
maryam-saeidi merged commit cd27f98 into elastic:8.8 Jun 5, 2023
@maryam-saeidi
maryam-saeidi deleted the backport/8.8/pr-158703 branch June 21, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:APM - DEPRECATED Use Team:obs-ux-infra_services.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants