[Logs UI] Remove UUID from Alert Instances#71340
Merged
Kerry350 merged 3 commits intoelastic:masterfrom Jul 14, 2020
Merged
Conversation
Contributor
|
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
Zacqary
commented
Jul 9, 2020
| const sourceConfiguration = await sources.getSourceConfiguration(savedObjectsClient, 'default'); | ||
| const indexPattern = sourceConfiguration.configuration.logAlias; | ||
| const alertInstance = alertInstanceFactory(alertId); | ||
| const alertInstance = alertInstanceFactory(UNGROUPED_FACTORY_KEY); |
Contributor
Author
There was a problem hiding this comment.
This is how we do it in Metrics, where error alert states just use the * alert instance, but if y'all want to handle it differently in Logs please suggest a change.
Kerry350
approved these changes
Jul 13, 2020
Contributor
Kerry350
left a comment
There was a problem hiding this comment.
LGTM 👍 Thanks for bringing this fix over to logs alongside metrics.
Contributor
|
@elasticmachine merge upstream |
Contributor
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
Kerry350
pushed a commit
to Kerry350/kibana
that referenced
this pull request
Jul 14, 2020
* [Logs UI] Remove UUID from Alert Instances * Fix bad template string Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Jul 14, 2020
* master: (72 commits) [test] Skips test preventing promotion of ES snapshot elastic#71612 [Logs UI] Remove UUID from Alert Instances (elastic#71340) [Metrics UI] Remove UUID from Alert Instance IDs (elastic#71335) [ML] Functional tests - disable DFA creation and cloning tests [APM] Use status_code field to calculate error rate (elastic#71109) [Observability] Change appLink passing the date range (elastic#71259) [Security] Add Timeline improvements (elastic#71506) adjust vislib bar opacity (elastic#71421) Fix ScopedHistory mock and adapt usages (elastic#71404) [Security Solution] Add hook for reading/writing resolver query params (elastic#70809) [APM] Bug fixes from ML integration testing (elastic#71564) [Discover] Add caused_by.type and caused_by.reason to error toast modal (elastic#70404) [Security Solution] Add 3rd level breadcrumb to admin page (elastic#71275) [Security Solution][Exceptions] Exception modal bulk close alerts that match exception attributes (elastic#71321) Change signal.rule.risk score mapping from keyword to float (elastic#71126) Added help text where needed on connectors and alert actions UI (elastic#69601) [SIEM][Detections] Value Lists Management Modal (elastic#67068) [test] Skips test preventing promotion of ES snapshot elastic#71582 [test] Skips test preventing promotion of ES snapshot elastic#71555 [ILM] Fix alignment of the timing field (elastic#71273) ...
Kerry350
added a commit
that referenced
this pull request
Jul 14, 2020
* [Logs UI] Remove UUID from Alert Instances * Fix bad template string Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
|
Hi @Zacqary Should this be included in the 7.9.0 release notes? I don't see it listed here: https://github.com/elastic/kibana/blob/0afaba21b39709739086e2aaa3a88a8a1bea855b/docs/CHANGELOG.asciidoc |
Contributor
Author
This was referenced Aug 5, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the Logs alert equivalent of #69623
Logs alerts will now generate alert instance IDs using only
groupinstead ofuuidandgroup. This was creating problems with throttling and stability for users with multiple Kibana instances.It turns out we didn't need a unique
uuidto differentiate alert instances. Multiple alerts can create an instance named*without stepping on each other; what matters is that the ID is unique within an alert itself.While I was at it I decided to add
UNGROUPED_FACTORY_KEYto metrics alerts as well.Checklist