Skip to content
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

[OBX-UI-MNGMT] Align the Metric rule charts by using Lens in Alert details page and Creation Rule flyout #184950

Merged
merged 24 commits into from
Jun 20, 2024

Conversation

fkanout
Copy link
Contributor

@fkanout fkanout commented Jun 6, 2024

Summary

Fixes #184922
Fixes #184574

It uses the RuleConditionChart, a.k.a Lens chart, for the Metric Threshold rule.

Implemented in both places:

  • Metric Alert Details page
    Screenshot 2024-06-10 at 16 12 43

  • Rule creation flyout
    Screenshot 2024-06-10 at 16 13 18

@fkanout fkanout self-assigned this Jun 6, 2024
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

@fkanout fkanout added Team:obs-ux-management Observability Management User Experience Team v8.15.0 labels Jun 6, 2024
@maryam-saeidi
Copy link
Member

/ci

@fkanout fkanout marked this pull request as ready for review June 10, 2024 14:13
@fkanout fkanout requested a review from a team as a code owner June 10, 2024 14:13
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jun 10, 2024
@fkanout fkanout added release_note:feature Makes this part of the condensed release notes release_note:skip Skip the PR/issue when compiling release notes and removed release_note:feature Makes this part of the condensed release notes labels Jun 10, 2024
Copy link
Contributor Author

@fkanout fkanout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding warning threshold

@fkanout
Copy link
Contributor Author

fkanout commented Jun 12, 2024

adding warning threshold

Added ✅

Screenshot 2024-06-12 at 10 16 35

@benakansara benakansara self-requested a review June 18, 2024 09:50
Copy link
Contributor

@benakansara benakansara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM.

While testing, I noticed that when removing "warning" threshold, its reference line is not removed from the chart.

Screen.Recording.2024-06-19.at.12.59.11.mov

@fkanout
Copy link
Contributor Author

fkanout commented Jun 19, 2024

Code changes LGTM.

While testing, I noticed that when removing "warning" threshold, its reference line is not removed from the chart.

Screen.Recording.2024-06-19.at.12.59.11.mov

Nice catch @benakansara! I fixed that, and I'm updating the chart tests too.

Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Infra code changes LGTM

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 19, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #41 / transform basic license "after all" hook: afterTestSuite.trigger in "transform basic license"
  • [job] [logs] FTR Configs #41 / transform basic license transform - creation - runtime mappings & saved search "after all" hook in "transform - creation - runtime mappings & saved search"
  • [job] [logs] FTR Configs #41 / transform basic license transform - creation - runtime mappings & saved search creation_saved_search "after all" hook: afterTestSuite.trigger in "creation_saved_search"
  • [job] [logs] FTR Configs #41 / transform basic license transform - creation - runtime mappings & saved search creation_saved_search "before all" hook in "creation_saved_search"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1612 1580 -32

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
observability 689 695 +6

Async chunks

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

id before after diff
infra 1.6MB 1.5MB -32.4KB
observability 306.5KB 288.2KB -18.3KB
total -50.7KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
observability 15 16 +1

Page load bundle

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

id before after diff
infra 101.8KB 101.8KB -7.0B
observability 123.3KB 142.2KB +18.9KB
total +18.9KB
Unknown metric groups

API count

id before after diff
observability 698 704 +6

async chunk count

id before after diff
infra 17 18 +1
observability 11 10 -1
total -0

History

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

cc @fkanout

Copy link
Contributor

@benakansara benakansara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fkanout fkanout merged commit 85f1280 into elastic:main Jun 20, 2024
24 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 20, 2024
bhapas pushed a commit to bhapas/kibana that referenced this pull request Jun 24, 2024
…tails page and Creation Rule flyout (elastic#184950)

## Summary
Fixes elastic#184922
Fixes elastic#184574

It uses the `RuleConditionChart`, a.k.a Lens chart, for the Metric
Threshold rule.
### Implemented in both places:
- Metric Alert Details page
![Screenshot 2024-06-10 at 16 12
43](https://github.com/elastic/kibana/assets/6838659/9d88d9b9-fe5d-4f8d-9e5a-538c52c58692)

- Rule creation flyout
![Screenshot 2024-06-10 at 16 13
18](https://github.com/elastic/kibana/assets/6838659/8c9ca3b3-2fbf-4cfa-83c9-00278c5e8e77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.15.0
Projects
None yet
10 participants