alerting-dashboards-plugin icon indicating copy to clipboard operation
alerting-dashboards-plugin copied to clipboard

Conditional Action in Alerting monitors

Open nik06 opened this issue 2 years ago • 4 comments
trafficstars

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.

nik06 avatar Jun 05 '23 20:06 nik06

@opensearch-project/triage Please help move the issue to Alerting repo https://github.com/opensearch-project/alerting-dashboards-plugin/issues

zhongnansu avatar Jun 05 '23 22:06 zhongnansu

@zhongnansu - apparently the triage group doesn't always have necessary permissions. @opensearch-project/admin can you transfer?

joshuarrrr avatar Jun 06 '23 16:06 joshuarrrr

@joshuarrrr I have moved this issue to alerting dashboards repo.

bbarani avatar Jun 06 '23 16:06 bbarani

@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.

AWSHurneyt avatar Jun 13 '23 15:06 AWSHurneyt