-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Discover] UI for alert creation #71098
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
The initial mocks here were fluid, and are being revised. The create alert button in the first image can be global, and let's have design's @andreadelrio take a look at where this is most aesthetic. The second image of the flyout need some refinement. We have the ability to take what has been done by other teams and leverage it. Here is a new flyout mock, which is based on the Metrics alerting flyout Please note, any information that can be automatically filled in, such as the parameters of a search that was done in Discover, or filters that were applied, should be auto-populated in the 'Create alert' form. |
Few things im not im following:
|
Hi @AlonaNadler thanks for pointing this out. The image is a screenshot from the metric app. The goal here is to just put some more detail around what this should look like. Of course, these aren't metrics alerts, but the sections; Create alert, Alert trigger, filter, Create alert per (Grouping), and Actions are relevant. We can reword things if needed, but I see all of these sections being relevant. Perhaps, some more relevant in a phase II of the UI. The desired audience for this right now is @andreadelrio so let's see what questions come up from her end. |
Figma file - Currently shows first iteration of design: Things coming to next iteration (discussed in our meeting):
|
@andreadelrio one other thing that was mentioned in our meeting was to make it clear through simple text to the user, that this alert will, "Create an alert to be notified when new results match your search" or some similar micro-copy. Also, after speaking with Aris, the Create alert per functionality can be accomplished with the Grouped functionality taken from the screenshot of a generic alert. In our case, we could set it to over one document to alert anytime that field has a new document that matches, or maybe the user wants to limit that to only when new documents are over five or 100. Would you mind incorporating this into the Alert trigger section as well, and removing the Create alert per section? More reading on how this is accomplished on the backend is in the alert instances section of this alerting doc - https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html#alerting-concepts-alert-instances |
Alerts in Discover in my perspective (and the way users express that to me) are similar to a subscribe capability, based on the query users are currently viewing they will get notifications.
|
Hi @AlonaNadler thanks for the questions. Let me try to answer them. 1 and 2 are related. For 1, we need the group function of the alerting framework in order to accomplish. 2 is being changed from category to group since the functionality already exists. For 3, I somewhat agree. We may be able to combine the check for and alert for to the same field, but we definitely need the range. I will consider the options after researching further. The initial though is that if you have a large dataset, and are pulling all the records from the last day if you only want a days worth of alerts, it would tax the server -vs- if you poll for the last five minutes, consolidate those alerts and then send every day. Regardless, the helper text should clear up what the alert does, which your perspective on from above is correct. |
Ok, so after a bit more research, three time fields are critical for most use cases. Imagine an alert that checks 12 hours, but notifies every five minutes. This means that five minutes after the 12 hour check, you would get an alert. If there is only one field, you would only get an alert every 12 hours. Range is also important so as to enable users to go back 24 hours on a 12 hour alert, or perhaps if they are ingesting historical data or consolidating, perhaps you would need to look back one years and alert every 12 hours and check every 12 hours. The other alerting solutions in Kibana have these three fields, and we are keeping them as part of the design. |
Heya @shaunmcgough similar to your ask around visualization alerts, I wanted to summarize our quick discussion from our 1:1. Myself and @arisonl have been in a number of discussions with customers and community members around the types of alerts they'd like in Elastic. The search alert comes up frequently with users that have used Splunk at some point, and generally as the most useful alert our base is interested in. Both the Logs application and our threat detection engine have been called out with functionality that users of stack features such as Discover, would like to see generically as part of our alerting capabilities. The use case being I have a query, and want to be able to receive an alert when more than X results are returned over Y timeframe. There seemed to be confusion during our discussion across the fields in the latest mockups, so I wanted to provide some clarification. @arisonl, please correct me if I'm missing anything.
Hope this helps! |
Thanks, @alexfrancoeur I was just previewing a response to this with our updated notes, so your timing was perfect! @andreadelrio it's safe to say that we should add in the threshold field again, and change notify to re-notify. I believe a simple button should be added to create alert for any new documents would be a good shortcut for folks since this will be a heavy use case. In addition to what Alex states, the Group by will only provide results that meet the group by criteria, so e.g. if a user picks Group by, TOP, X, Fields only the TOP X Fields would be reported. @arisonl I'd lean on you for any clarity as well. |
Alex and Alona cover it but let me add a couple of notes just in case they help clarify certain points in the dicussion:
|
Closing in favor of #117532 |
As the last step of a Discover alerting MVP, we need to add an alert creation UI that is used to create the alert executor.
Here are some wireframe concepts from @AlonaNadler for further discussion:
Clicking on create alert opens a flyout. The flyout takes into account the search bar query and filters. Whatever is in blue is configurable:
The text was updated successfully, but these errors were encountered: