Skip to content

Send alert only for first match or how to avoid the realert #520

Closed Locked Answered by jertel
masterplanx asked this question in Q&A
Discussion options

You must be logged in to vote

Is the Kubernetes Cluster Autoscaler not an option for your deployment? It handles cluster level scaling for you, based on a number of inputs, including CPU usage. The major cloud providers include this feature.

Assuming you have a reason to not use the autoscaler, one option with ElastAlert 2 is to have the rule disable itself once it triggers, and then when the 80% rule triggers, have it re-enable the 20% rule. To make a rule disable itself, and/or enable another rule, would require creating an enhancement that performs this work. It would flip the rule's is_enabled key value to true or false as needed.

Drawbacks of this approach is that you will struggle to keep the scale state synchro…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jertel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants