Let’s start using Hawkular Alerts with a small example.
We are going to create an alert definition like this:
TRIGGER trigger-for-poc
WHEN
data-x < 5 AND data-y > 5
HAPPENS
2 consecutive times
THEN
EMAIL to:admin-group@hawkular.org,cc:cc-group@hawkular.org
In the example, we create a trigger with two conditions that is linked with an email action for alert notifications.
Now that we have the definitions created on the engine, next step will be to send data to evaluate the conditions.
For this example we are going to use directly the REST API from a bash script send-data.sh.
The example sends random data to the engine, triggering alerts when two consecutive evaluations of the conditions
happens, then an email notification is sent with the action details.
We have created a short demo showing the whole scenario.
This example is quite simple and its goal is to show the flexibility to use the engine.
More details about Hawkular Alerts features can be found at
Feel free to try out the latest release for yourself on your own applications. If you have any questions or comments,
please contact us on these channels.
If you have suggestions for features/enhancements, or find any bugs, then please log an issue in the project jira.