alerting-dashboards-plugin
alerting-dashboards-plugin copied to clipboard
Conditional Action in Alerting monitors
Is your feature request related to a problem? Please describe.
Opensearch currently allows configuring upto 10 Actions against a monitor. I have scenarios in my application where I want to perform an action based on certain condition. e.g. If num>10, send email alert else send a Teams notification.
Describe the solution you'd like
I want Opensearch Monitor UI to allow further conditioning on actions after the Trigger condition has resulted true.
Describe alternatives you've considered
Currently, I have to replicate my monitor with a different name and the only difference from first one is the final Action which could have been avoided if actions were further conditional.
Additional context
The feature was recently requested on Kibana forum as well : https://github.com/elastic/kibana/issues/158014 It would be great if we can gather some additional info or mockups from there as well.
@opensearch-project/triage Please help move the issue to Alerting repo https://github.com/opensearch-project/alerting-dashboards-plugin/issues
@zhongnansu - apparently the triage group doesn't always have necessary permissions. @opensearch-project/admin can you transfer?
@joshuarrrr I have moved this issue to alerting dashboards repo.
@nik06 Thank you for the suggestion! If I'm understanding correctly, it sounds like a summary of the request would involve having some additional logic for determining which action to perform based on the results of a trigger?
I can see how this would be valuable for various use cases. I'll add it to our backlog.
In the meantime, additional triggers can be defined for each monitor to accomplish this use case. For example, the trigger condition for trigger1 could be configured as num <= 10, and its action could send a notification to the email; and the condition for trigger2 could be num > 10, and its action could send the notification to the team. It sounds you're already doing something like that, but I thought it would be worthwhile to mention that for anyone who comes across this thread in the future.