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

Trigger a notification when the alert changes to green

Open sapir2239 opened this issue 2 years ago • 2 comments
trafficstars

Hey

I wanted to know if it is possible to trigger an action when the monitor changes from the "error" state back to "normal" state?

sapir2239 avatar May 31 '23 07:05 sapir2239

@opensearch-project/admin please transfer to https://github.com/opensearch-project/alerting-dashboards-plugin

joshuarrrr avatar May 31 '23 17:05 joshuarrrr

Hi @sapir2239,

We don't currently support this, but a workaround could involve defining an additional trigger for the monitor. For example, if the happy state for your use case is for an index to have docCount < 100, you could define an additional trigger with that condition, and draft a notification message to convey that the monitor is no longer in an unhappy state.

However, that would mean that the monitor would likely be in a constant state of triggered or acknowledged. For that reason, it may be worthwhile to instead configure a second monitor with the same query, but only give it the happy state trigger condition.

I'll leave this issue open as an enhancement opportunity for the plugin.

AWSHurneyt avatar Jun 13 '23 17:06 AWSHurneyt