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

Add error.grouping_name to group alerts in Error Count rule #161810

Merged

Conversation

benakansara
Copy link
Contributor

@benakansara benakansara commented Jul 12, 2023

Resolves https://github.com/elastic/actionable-observability/issues/70

For the APM Error Count rule -

  • Added error.grouping_name in the index mapping of AAD index
  • Added error.grouping_name in the alert document in AAD index
  • Added errorGroupingName in the list of action variables

I discussed with @simianhacker regarding the alert instance ID having space/quotes with introduction of errorGroupingName. It appears that using errorGroupingName as is should not be an issue and so we don't need to modify or hash it.

Group by dropdown

Screenshot 2023-07-13 at 17 27 44

Reason message

Screenshot 2023-07-13 at 17 38 31

Index mapping

Screenshot 2023-07-13 at 17 40 32

Alert document

Screenshot 2023-07-13 at 17 39 46

Action variable

Screenshot 2023-07-13 at 17 43 13

Alert notification

Screenshot 2023-07-13 at 17 41 37

@benakansara benakansara added release_note:feature Makes this part of the condensed release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.10.0 labels Jul 12, 2023
@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!)

@benakansara benakansara self-assigned this Jul 13, 2023
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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.6MB 3.6MB +4.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 36.3KB 36.4KB +58.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 411 415 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 490 494 +4
total +6

History

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

cc @benakansara

@benakansara benakansara marked this pull request as ready for review July 13, 2023 15:46
@benakansara benakansara requested review from a team as code owners July 13, 2023 15:46
@elasticmachine
Copy link
Contributor

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

@benakansara benakansara requested a review from a team July 13, 2023 15:49
@benakansara benakansara changed the title Add errorGroupingName to group alerts in Error Count rule Add error.grouping_name to group alerts in Error Count rule Jul 13, 2023
successful: 1,
total: 1,
},
});
Copy link
Member

@sorenlouv sorenlouv Jul 13, 2023

Choose a reason for hiding this comment

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

It would be better to have these as API tests (and thus avoid the mocking) if that's possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sqren I have added API tests in: x-pack/test/apm_api_integration/tests/alerts/error_count_threshold.spec.ts. Did you mean to add tests for any specific scenario or are these enough?

@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jul 13, 2023
@elasticmachine
Copy link
Contributor

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

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

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

lgtm. Just one comment about the unit tests that I'd prefer as api tests.

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

response ops changes lgtm!

@benakansara benakansara merged commit 73ce87a into elastic:main Jul 14, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 14, 2023
@benakansara benakansara deleted the feat/add-error-grouping-name-to-groupby branch October 23, 2023 07:06
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:feature Makes this part of the condensed 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 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants