Skip to Main Content
The DevOps 2.2 Toolkit
book

The DevOps 2.2 Toolkit

by Viktor Farcic
March 2018
Intermediate to advanced content levelIntermediate to advanced
360 pages
7h 52m
English
Packt Publishing
Content preview from The DevOps 2.2 Toolkit

Integrating Alertmanager with Jenkins

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' ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.4 Toolkit

The DevOps 2.4 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781788991278Supplemental Content