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

[Metrics UI] Remove UUID from Alert Instance IDs #71335

Merged
merged 6 commits into from
Jul 14, 2020

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Jul 9, 2020

Summary

Fixes #69623

Metric threshold and inventory alerts will now generate alert instance IDs using only group instead of uuid and group. This was creating problems with throttling and stability for users with multiple Kibana instances.

It turns out we didn't need a unique uuid to 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.

This PR also updates the Alerts plugin readme to clarify this.

To test:

  • Create a metric alert that with a throttle period (make sure it will definitely fire)
  • Go to Alert Management and wait for it to generate instances
  • Restart Kibana (try just adding // to a file to force a server restart)
  • Refresh the Alert Management page
  • Ensure that the same instances are there, and that the Duration field hasn't reset

Checklist

@Zacqary Zacqary added Feature:Metrics UI Metrics UI feature v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.9.0 labels Jul 9, 2020
@Zacqary Zacqary requested review from a team as code owners July 9, 2020 22:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@Zacqary Zacqary added the v7.8.2 label Jul 9, 2020
Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

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

LGTM from the infra code side. I'll let the alerting team give their okay to the docs.

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

changes regarding alerting LGTM

Special thanks for the alerting update readme! 🥇

@Kerry350
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@Kerry350 Kerry350 merged commit 5ef8d3f into elastic:master Jul 14, 2020
Kerry350 pushed a commit to Kerry350/kibana that referenced this pull request Jul 14, 2020
* [Metrics UI] Use alertId instead of uuid for alertInstanceIds
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
* [Metrics UI] Use alertId instead of uuid for alertInstanceIds

Co-authored-by: Zacqary Adam Xeper <[email protected]>
@EamonnTP
Copy link
Contributor

EamonnTP commented Aug 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.2 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alert Instance gets resolved and immediately recreated when multiple Kibana Instances are running
6 participants