March 2018
Intermediate to advanced
360 pages
7h 52m
English
At the moment, we are running Alertmanager configured in the previous chapter. It creates a Slack notification on all alerts. Let's try to change it so that alerts trigger a remote invocation of the Jenkins job service-scale.
Since Alertmanager configuration is stored as a Docker secret and they are immutable (we cannot update them), we need to remove the service and the secret and create them again.
docker service rm monitor_alert-managerdocker secret rm alert_manager_config
Let us define a Slack config that will send build requests to the service-scale job. The command that creates the service with the configuration is as follows.
echo "route: group_by: [service] repeat_interval: 1h receiver: 'jenkins-go-demo_main' ...