alerting-dashboards-plugin
alerting-dashboards-plugin copied to clipboard
Trigger a notification when the alert changes to green
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?
@opensearch-project/admin please transfer to https://github.com/opensearch-project/alerting-dashboards-plugin
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.