Customize alerts for notifications

Customize alerts for notificationsΒΆ

Once configured, StackLight LMA sends notifications about all alerts. However, you can disable a particular alert or change its default notification route. For example, you can configure StackLight LMA to send email notifications about one alert and Salesforce notifications about the other one.

To customize alerts for notifications:

  1. Log in to the Salt Master node.

  2. Open the classes/cluster/cluster_name/stacklight/server.yml file of the Reclass model for editing.

  3. Edit the required alert:

    1. Type the alert name.

    2. Set the route parameter to salesforce or email. Alternatively, leave the route parameter empty to disable notifications for the specified alert.


                route: salesforce
  4. Apply the Salt formula:

    salt -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus.server -b1