Skip to main content
Alerting is intended for operational monitoring, and can only be used in a limited way to create alerts based on email (security) related data.
Prerequisites
Follow these steps to set up alerting:
  1. Open the Expert Editor.
  2. In the following we will activate alerting for XCC. Repeat all steps below in the monitored_mta folder instead of monitoring to activate MTA alerts.
  3. Open the file /monitoring/alertmanager/alertmanager.yml. Create it if it does not exist. All alert configuration will be done in this file.
  4. Choose the desired alert channel and configure it in alertmanager.yml. Here we provide examples for email, webhook and Slack integration. You can find the full list of supported integrations on the official Prometheus Documentation.
    This example configuration sends all alerts to a specified email address, see also prometheus.io - email_config.
  5. Optional: You also find some predefined examples in the same folder. Only the file alertmanager.yml will be considered, so they can be safely ignored or deleted if not used.
    • alertmanager.email.yml - Email notification examples, one basic example and one with severity based routing.
    • alertmanager.webhook.yml - Generic webhook example
    • alertmanager.slack.yml - Slack integration example.
    The different examples can be mixed by configuring different receivers and adjusting the route configuration accordingly, similar to the Email receiver (with routing) example. Alertmanager supports more receivers and allows for more advanced configuration (e.g. alerts being sent to more than one receiver, complex routing, etc.), see also prometheus.io - Route-related settings.
  6. Click Publish. The alerting becomes active within about one minute. Have a look at Test and Troubleshoot Alerts to verify them.

Optional: Enable notifications for resolved alerts

If you want to enable notifications about resolved alerts, you have to add the send_resolved property and set it to true for your selected receiver.
  1. Open your active alertmanager.yml config file (once for the XCC and once for the MTA).
  2. Find the receivers group, and under the chosen receiver config add send_resolved: true. For example, the receivers config for email alerts should look like this:
  3. Click Publish. The monitoring configuration becomes active within about one minute.