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

[AO] Update default action and recovery messages for observability rule types #159571

Merged

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jun 13, 2023

Closes #157284, closes #158437

Summary

This PR updates the default action and recovery message for observability rule types. Only uptime is excluded in this PR, I will add that after synching with the synthetics team.

Here you can find the list of default messages and the new proposals.
image

🧪 How to test

  • Ensure that server.publicBaseUrl is configured in kibana.dev.yml
  • Create an observability rule with an action such as Email to use the default messages (both for alert and recover states)
  • After an alert is triggered, check the generated action message, it should
    • match the message mentioned in the list
    • contain an alert details link pointing to the Alerts page filtered for that specific alert

@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 elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@maryam-saeidi maryam-saeidi changed the title update action recovery messages [AO] Update default action and recovery messages for observability rule types Jun 13, 2023
@@ -95,7 +95,7 @@ pageLoadAssetSize:
monitoring: 80000
navigation: 37269
newsfeed: 42228
observability: 100000
observability: 115443
Copy link
Member Author

Choose a reason for hiding this comment

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

I've just added some default messages for alerting. Not sure how to improve this; any suggestions?

@maryam-saeidi
Copy link
Member Author

/oblt-deploy

@maryam-saeidi maryam-saeidi marked this pull request as ready for review June 14, 2023 07:34
@maryam-saeidi maryam-saeidi requested review from a team as code owners June 14, 2023 07:34
@maryam-saeidi maryam-saeidi self-assigned this Jun 14, 2023
@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" labels Jun 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

LGTM !!

@maryam-saeidi
Copy link
Member Author

Sorry for the wrong ping! 🙈

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
apm 33.5KB 35.9KB +2.4KB
infra 135.3KB 136.8KB +1.5KB
observability 102.7KB 103.3KB +569.0B
total +4.5KB
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 13 15 +2
securitySolution 410 414 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 14 16 +2
securitySolution 493 497 +4
total +6

History

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

cc @maryam-saeidi

@maryam-saeidi maryam-saeidi merged commit 807c5d9 into elastic:main Jun 14, 2023
@maryam-saeidi maryam-saeidi deleted the 157284-update-action-recovery-messages branch June 14, 2023 18:21
@kibanamachine kibanamachine added v8.9.0 backport:skip This commit does not require backporting labels Jun 14, 2023
maryam-saeidi added a commit that referenced this pull request Jun 30, 2023
Fixes #160926
Partially reverts #159571

## Summary

At the moment, we don't have any context for recovered alerts for APM
rule types, and the default messages will be empty. We will bring these
messages back after #158183 is
done.

## 🧪 How to test
- When creating an APM rule, add an action for the recovered state. You
should see the default recovery message as Recovered

<img
src="https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1"
width="500"/>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2023
)

Fixes elastic#160926
Partially reverts elastic#159571

## Summary

At the moment, we don't have any context for recovered alerts for APM
rule types, and the default messages will be empty. We will bring these
messages back after elastic#158183 is
done.

## 🧪 How to test
- When creating an APM rule, add an action for the recovered state. You
should see the default recovery message as Recovered

<img
src="https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1"
width="500"/>

(cherry picked from commit 3382061)
kibanamachine referenced this pull request Jun 30, 2023
…) (#160967)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[AO] Remove default recovery messages for APM rule types
(#160928)](#160928)

<!--- 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-30T09:14:11Z","message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","Team:
Actionable
Observability","backport:prev-minor","v8.10.0"],"number":160928,"url":"https://github.com/elastic/kibana/pull/160928","mergeCommit":{"message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160928","number":160928,"mergeCommit":{"message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38"}}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.9.0
Projects
None yet
10 participants