Back to index

Events

You can configure alerts based on certain events that may occur over time (server down, metrics that exceed critical values).

Particularly when a metric or a log meets a certain condition can trigger the sending of an email, the execution of an HTTP request or the execution of a function

When:

  • Log

  • Metric

Do:

  • Send Mail

  • Execute HTTP

  • Execute Function

events.png
Figure 1. Alerts

Let’s take an example to better understand how events work:

If I would like to receive an email when an error happens on my server I can:

  • click on "new event button";

  • select "Log" on column "when";

  • click "configure" button (on column "when") and enter the necessary data as shown in figure "Log alert";

logwhen.png
Figure 2. Log alert
  • now select "Mail" on "Do" column and click "configure" and enter the necessary data as shown in figure "Mail alert";

mailalert.png
Figure 3. Mail alert
  • click on save button

Tip There are some keywords that you can use for a better notification. Workbench will replace it with the right data.
keyword.png
Figure 4. keyword
Note from address, to address, subject and body are mandatory in mail alert.
Note for smtp configure please see Setting chapter.