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:
Log in to the Salt Master node.
Open the classes/cluster/cluster_name/stacklight/server.yml
file of the
Reclass model for editing.
Edit the required alert:
Type the alert name.
Set the route
parameter to salesforce
or email
.
Alternatively, leave the route
parameter empty to disable
notifications for the specified alert.
Example:
prometheus:
server:
alert:
AlertName:
labels:
route: salesforce
Apply the Salt formula:
salt -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus.server -b1