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

[Test Plan] [Metrics UI] Infrastructure Anomaly alert type #92661

Closed
8 of 10 tasks
Zacqary opened this issue Feb 24, 2021 · 5 comments
Closed
8 of 10 tasks

[Test Plan] [Metrics UI] Infrastructure Anomaly alert type #92661

Zacqary opened this issue Feb 24, 2021 · 5 comments
Assignees
Labels
Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services test-plan

Comments

@Zacqary
Copy link
Contributor

Zacqary commented Feb 24, 2021

Summary

This test plan covers the new Infrastructure Anomaly alert type (#89244)

See the How to test section of the linked PR for instructions on how to get anomaly data locally.

Scenarios

UI

  • An anomaly alert can be created using the Alerts dropdown when on the Inventory page
    • When creating an anomaly alert from the Inventory page, the alert flyout is pre-filled with the corresponding node type if able (anomalies can only be detected on Hosts or Kubernetes pods; other node types should default to Hosts)
  • An anomaly alert can be created using the Alerts dropdown when on the Metrics Explorer page
  • An anomaly alert can be created from the Alerts Management page
  • An anomaly alert can be edited from the Alerts Management page
  • The Alert Preview function returns expected results
  • The text box for the influencer filter autocompletes one term successfully, and doesn't do anything weird like prompting you to add any AND statements or additional field names

Alert execution

  • The alert executes as expected when a new anomaly occurs
  • The influencer filter works with an exact match name, e.g. kubernetes-pod-id-abc123
  • The influencer filter works with a wildcard, e.g. kubernetes-pod-id-*
@Zacqary Zacqary added Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services test-plan labels Feb 24, 2021
@elasticmachine
Copy link
Contributor

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

@neptunian neptunian self-assigned this Feb 25, 2021
@neptunian
Copy link
Contributor

neptunian commented Mar 1, 2021

Testing on BC2 pointed at release-oblt, Mac OS Chrome

  • When trying to create an infrastructure alert for Kubernetes Pods I get this error if i don't have k8s jobs enabled. It should not mention these jobs but rather the Kubernetes job. If i disable the host job and try to preview the alert the error messaging is accurate.

Screen Shot 2021-02-25 at 3 52 16 PM

  • When trying to create an infrastructure anomaly alert from the Alerts Management page I get this error. It doesn't happen for other alert types

Screen Shot 2021-02-25 at 4 05 54 PM

  • If I go to Alerts Management and try to edit an alert I get this error:

Screen Shot 2021-02-25 at 4 32 27 PM

@Zacqary
Copy link
Contributor Author

Zacqary commented Mar 1, 2021

Looks like the Spaces plugin, which is necessary to create and manage anomaly alerts, isn't enabled in triggers_actions_ui, which wraps Alert Management.

Adding to that difficulty, it doesn't look like we can actually import some kind of context fetcher directly from the spaces plugin to get the current active space. infra loads Spaces services into our useKibana wrapper.

Seems a little complicated to solve this, but I'm looking into it. Definitely need to get this fixed before pushing this alert type out.

@neptunian
Copy link
Contributor

Not sure if your fix made it into BC3 but still get the same results. Will try again on BC4.

@simianhacker
Copy link
Member

We decided to pull this feature

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 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services test-plan
Projects
None yet
Development

No branches or pull requests

4 participants