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

[Uptime] Ml anomaly alert edit #76909

Merged
merged 10 commits into from
Sep 29, 2020
Merged

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Sep 8, 2020

Summary

Fixes: #75080

Enabled requireAppContext true for uptime anomaly alert, because it doesn't make sense to enable/disable it outside uptime app.

ML job needs to be enabled for this alert to work. User enable/edit/delete job via popover alongside ml job.

@shahzad31 shahzad31 marked this pull request as ready for review September 9, 2020 09:01
@shahzad31 shahzad31 requested a review from a team as a code owner September 9, 2020 09:01
@shahzad31 shahzad31 self-assigned this Sep 9, 2020
@shahzad31 shahzad31 added release_note:fix v7.10.0 v8.0.0 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Sep 9, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@shahzad31 shahzad31 changed the title Ml anomaly alert edit [Uptime] Ml anomaly alert edit Sep 9, 2020
@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@shahzad31
Copy link
Contributor Author

@justinkambic please review this when you get chance

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@andrewvc
Copy link
Contributor

@drewpost @paulb-elastic WDYT about this change? This makes the alert ONLY editable from the app, not from the global alerts page. I'm not sure I like this solution, but I'd be curious to hear another thought.

@shahzad31
Copy link
Contributor Author

@andrewvc do you have an alternative solution in mind?

@andrewvc
Copy link
Contributor

In the issue #75080 I mentioned making it editable from the alerts manager. I'd still like to hear feedback from @drewpost an @paulb-elastic on this one.

@shahzad31
Copy link
Contributor Author

In the issue #75080 I mentioned making it editable from the alerts manager. I'd still like to hear feedback from @drewpost an @paulb-elastic on this one.

Yeah biggest problem with that is that it needs context if job is enabled or not, also allowing editing from alert management will also allow to create alert from alerting app. which doesn't make sense at all.

I can enable editing the threshold part from alert app, but like i said, it also will allow user to create an alert.

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@paulb-elastic
Copy link
Contributor

I would think that having the alert be created in Uptime, but then not be available (even listed?) in the central Alerts and Actions section, would be confusing to a user (they may think it is a bug, where has it gone?).

Having the ability to define which monitor it relates to also seems necessary (so it doesn't treat all monitors the same, and trigger on any of them, e.g. a dev or staging environment).

Being able to do this by selecting the monitor in the WHEN clause as mentioned by @andrewvc seems useful (this will allow one or more monitors to be defined). Perhaps a future version could have a UI to help the user manage this more easily).

@andrewvc
Copy link
Contributor

@paulb-elastic given our discussion about priorities today, I've actually reversed my thinking on this. I'm inclined to accept this patch as is given that selecting the monitor ID in the alert dialog doesn't make much sense, since we'd also need to validate that it has ML properly processing. I think we can improve this flow, but the effort is high, but the benefit not commensurate.

Your thoughts?

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@shahzad31
Copy link
Contributor Author

@andrewvc please give this another look when you get chance :)

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewvc
Copy link
Contributor

@shahzad31 can you check with @paulb-elastic before merging ? I don't think he has any objections now but it'd be good to be sure

@shahzad31
Copy link
Contributor Author

I talked with @paulb-elastic offline, he gave go ahead, so merging it.

@shahzad31 shahzad31 merged commit 2fbf9b9 into elastic:master Sep 29, 2020
@shahzad31 shahzad31 deleted the ml-anomaly-alert-edit branch September 29, 2020 10:23
shahzad31 added a commit to shahzad31/kibana that referenced this pull request Sep 29, 2020
shahzad31 added a commit that referenced this pull request Sep 29, 2020
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
phillipb added a commit to phillipb/kibana that referenced this pull request Sep 29, 2020
…-to-timeline

* 'master' of github.com:elastic/kibana: (22 commits)
  update apm index pattern (elastic#78732)
  78024: move transform out of dataset (elastic#78216)
  [QA][Code Coverage] Upload the coverage static site before ingestion (elastic#78695)
  [Discover] Make _source field not clickable (elastic#78698)
  [Fleet] Rename Ingest Manager => Fleet, Fleet => Agents in the UI (elastic#78685)
  [APM] Review feedback from distribution + transaction metrics (elastic#78752)
  [Ingest pipelines] Add ability to stop pipeline simulation  (elastic#78183)
  [CSM] Fix core vital legend background (elastic#78273)
  [Usage Collection] [schema] Support spreads + `canvas` definition (elastic#78481)
  fix lodash imports (elastic#78456)
  [Maps] Add layer type preview icons (elastic#78650)
  [APM] Use transaction metrics for distribution charts (elastic#78484)
  [Uptime] Ml anomaly alert edit (elastic#76909)
  [ML] Limit exposing shared static code through ml/public/index.ts. (elastic#77745)
  making expression debug info serializable (elastic#78727)
  fix lodahs imports in app-arch code (elastic#78582)
  Make Field a React.lazy export (elastic#78483)
  [Security Solution] Improves detections tests (elastic#77295)
  [TSVB] Different field format on different series is ignored (elastic#78138)
  RFC: Improve saved object migrations (elastic#66056)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] ML Monitor alerts not editable / creatable through mgmt
5 participants