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

Setting up Alertmanager

Since we are already using Prometheus, it makes sense to deploy Prometheus' companion Alertmanager. It will receive alerts, filter and forward them to the end-points we'll define. Slack will be the first.

Alertmanager Docker image expect us to define a configuration file that defines routes, receivers, and a few other things. One possible configuration can be as follows.

route: 
  receiver: "slack" 
  repeat_interval: 1h 
 
receivers: 
    - name: "slack" 
      slack_configs: 
          - send_resolved: true 
            text: "Something horrible happened! Run for your lives!" 
            api_url: "https://hooks.slack.com/services\/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" 

The configuration defines the route with slack as the receiver of the alerts. In the receivers ...

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