Skip to content

[Alert details page][Custom threshold] Add history chart for multiple conditions - #180578

Merged
maryam-saeidi merged 9 commits into
elastic:mainfrom
maryam-saeidi:179003-alert-history-multi-condition
Apr 16, 2024
Merged

maryam-saeidi merged 9 commits into
elastic:mainfrom
maryam-saeidi:179003-alert-history-multi-condition

Conversation

@maryam-saeidi

Copy link
Copy Markdown
Member

Fixes #179003

Summary

This PR adds a selector for multiple condition rules to the history chart:

Screen.Recording.2024-04-11.at.13.09.35.mov

@maryam-saeidi maryam-saeidi added release_note:feature Makes this part of the condensed release notes Feature:Alert Details Page Observability ux management team Feature: Custom threshold Observability custom threshold rule type labels Apr 11, 2024
@maryam-saeidi maryam-saeidi self-assigned this Apr 11, 2024
@ghost

ghost commented Apr 11, 2024

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.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jasonrhodes

Copy link
Copy Markdown
Member

Nice work! For clarity, can we have multi condition with OR logic in a rule like this? And if so, if the first condition hasn't been met but the second one has, would the default view here look like "no alerts in the past 30 days" (bc it would show the first condition and how it hasn't been "violated" in that time period)?

@maryam-saeidi

Copy link
Copy Markdown
Member Author

Nice work! For clarity, can we have multi condition with OR logic in a rule like this? And if so, if the first condition hasn't been met but the second one has, would the default view here look like "no alerts in the past 30 days" (bc it would show the first condition and how it hasn't been "violated" in that time period)?

No, multi-conditions are used with AND logic.

@jasonrhodes

Copy link
Copy Markdown
Member

No, multi-conditions are used with AND logic.

OK, thanks. For single condition rules, it might be nice to have the same drop-down with just the one single condition option, as a way for users to become familiar with that UI element, but I'll defer to @maciejforcone on that. Otherwise this looks like a great improvement for the rules.

@maryam-saeidi

Copy link
Copy Markdown
Member Author

OK, thanks. For single condition rules, it might be nice to have the same drop-down with just the one single condition option, as a way for users to become familiar with that UI element, but I'll defer to @maciejforcone on that. Otherwise this looks like a great improvement for the rules.

I added a condition to hide this selection for a single condition as I thought it might be confusing to see it when a user does not have any option to select from. I can remove that check in case having it regardless of the number of conditions is useful.

@maryam-saeidi

Copy link
Copy Markdown
Member Author

/ci

@maryam-saeidi
maryam-saeidi marked this pull request as ready for review April 12, 2024 11:33
@maryam-saeidi
maryam-saeidi requested a review from a team as a code owner April 12, 2024 11:33
@elasticmachine

Copy link
Copy Markdown
Contributor

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

@benakansara
benakansara self-requested a review April 15, 2024 10:18
@benakansara

Copy link
Copy Markdown
Contributor

Is it possible to show tooltip in dropdown menu items for long equations?

I noticed an issue with alert annotation label where it shows extra [1]. It may not be related to this PR.

Screenshot 2024-04-15 at 13 15 52

@benakansara benakansara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Left a comment above.

@maryam-saeidi

Copy link
Copy Markdown
Member Author

Is it possible to show tooltip in dropdown menu items for long equations?

Added in 3360cb6

image

I noticed an issue with alert annotation label where it shows extra [1]. It may not be related to this PR.

I didn't change the logic about alert annotation, so I assume this would happen in one condition as well. Would you please create a ticket for it? Or if you let me know how to reproduce it, I can create an issue for it.

@maryam-saeidi
maryam-saeidi enabled auto-merge (squash) April 16, 2024 07:23
@kibana-ci

Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 507 508 +1

Async chunks

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

id before after diff
observability 284.5KB 284.8KB +347.0B

History

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

cc @maryam-saeidi

@maryam-saeidi
maryam-saeidi merged commit 51a67b8 into elastic:main Apr 16, 2024
@kibanamachine kibanamachine added v8.14.0 backport:skip This PR does not require backporting labels Apr 16, 2024
@maryam-saeidi
maryam-saeidi deleted the 179003-alert-history-multi-condition branch April 16, 2024 09:15
@benakansara

Copy link
Copy Markdown
Contributor

I didn't change the logic about alert annotation, so I assume this would happen in one condition as well. Would you please create a ticket for it? Or if you let me know how to reproduce it, I can create an issue for it.

created #180890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Alert Details Page Observability ux management team Feature: Custom threshold Observability custom threshold rule type release_note:feature Makes this part of the condensed release notes Team:actionable-obs - DEPRECATED DEPRECATED v8.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Observability Alerting] "Alerts history" chart for Custom Threshold alert details should work for single and multi-condition rules

6 participants