-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ResponseOps] UX for rules where interval is less than configured minimum #126409
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
Ideally, yes. Does this add a lot of complexity?
I don't think so, no. What if on on import we change the interval to be the minimum interval if it's lower than the minimum interval and display a warning?
Ideally, yes. Adding some type of indicator would be great. |
No! That is the existing behavior. Just verifying that it is expected.
We can display a warning on import if there are rules below the configured minimum but are unable to modify rule SO on import until this issue is resolved. |
@XavierM regarding |
We also have this issue (#126946) which will cover the UX when the system warns users when they create rules with an interval below the configuration. |
@mdefazio We're looking to show an indicator on the Rule Management page when a rule's schedule is below the configured minimum. With this PR and this PR we're adding a configurable minimum interval that we'll treat as either a suggestion or a requirement. If it's a suggestion, we're not preventing users from creating these rules, just showing/logging some warnings. Do you have any suggestions for what this indicator might look like? I was thinking it should be on the adding @ryankeairns too |
@ymao1 Still thinking on this one a bit. I think the interval column probably works for now, but wondering if we need to accommodate more things like this from a rule level --> warnings, insights, recommendations, etc. Maybe thinking ahead too much, but that's where I am. When strictly enforcing it, would existing or imported rules fail because of this if they have intervals below the minimum? As opposed to allowing it and letting the rules run? My thinking is that we make this warning the same regardless if suggesting or strict, and the rule would show differently anyway bc its failing if its strictly enforced. |
@mdefazio The current thinking is that existing rules will continue to run even with strict enforcement. It will only be on update that we will enforce this minimum. For imported rules, we would like to eventually auto-adjust the interval on import to be at the minimum but this ability is not yet supported by core so for now they will continue to run. |
After thinking on this further, and with other updates that will potentially effect the UI of the rule row/table, I'm thinking simply keeping this on the column for now until we can nail down an update for the full row and take this into account more holistically. My reasoning is that this feels like a general rule warning and if there are future warnings we need to accommodate, they should be presented in a single metric, rather than scattered across columns. Perhaps there are opposing opinions to this, but my reaction is that improving how this is shown (outside of a simple alert icon in the column) involves reworking the whole row. |
@mdefazio That makes sense to me. Any suggestions for how an indicator on the column should look? |
I was imagining a simple icon + tooltip after the interval value in the row. I was going between using a banner as well to let the user know there are rules with warnings. But I felt like this would be too obtrusive for this case. So I'm showing a toast instead. That said, are we able to filter these rules based on this kind of warning? |
Would that actually solve the issue though? Wouldn't I be able to set a minimum interval of 1 day? Whereas other rules could have a minimum of 1 hour or 1 min? Wouldn't this fall under a 'Warning' status (from the new proposed rule execution statuses)? So the inability to filter would only be until these new statuses are updated? |
The minimum is a global minimum and not per rule type so any rule that falls below the minimum would show this indicator on the rules list. We are currently not putting the rule status into a |
Ah, gotcha. But I guess then the issue is to let them know that I should sort by that column to find those rules with low intervals. Explaining that in the toast seems like it would get lost pretty quick. 🤔 Regarding your second point, I'm not 100% clear on the difference. A few reasons (which may or not be accurate though):
|
@mdefazio The goal of this minimum interval configuration is to encourage users to only create rules that are above the minimum because running a lot of rules with a small interval may affect alerting performance. That's not to say it necessarily does. It really depends on the number of rules they're running and whether they are all running at small intervals or whether they run a long time. If they're only running 1 rule at a 1 second, it's going to run just fine, even if it's below the minimum. The execution statuses we have (error, warning) represent the state of the rule during the last execution. Right now, we only have 1 usage of To me there's a slight difference between (1) Warning because something actually happened during rule execution and (2) Warning because there may be a configuration issue that may or may not affect actual execution. Maybe I'm just too involved in the implementation details though and there's not actually much difference between the two as I think?
Right now you would only see it when you edit the rule but I think it would makes sense to show something on the rule details view as well. I don't think we currently show the schedule interval on that view so we'd have to add it somewhere. |
@ymao1 and I talked this through a bit more and reached the following consensus:
I will update the mockups in this issue shortly. |
The questions on the original issue have been answered so changing the issue description to reflect current scope, which is adding an indicator to the UI when a rule is below the configured minimum.
** Original Issue **
With this PR we have added a Kibana-wide configuration for the minimum schedule interval for a rule. This minimum will only apply to rules that are created or updated after this setting was added. Rules that were created before this setting was added will continue running.
There was a question raised about whether we should be able to enable/disable rules that were created before this setting was added and have a lower interval than the configuration
Questions: (updated with answers)
The text was updated successfully, but these errors were encountered: