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.

  receiver: "slack" 
  repeat_interval: 1h 
    - name: "slack" 
          - send_resolved: true 
            text: "Something horrible happened! Run for your lives!" 
            api_url: "\/T308SC7HD/B59ER97SS/S0KvvyStVnIt3ZWpIaLnqLCu" 

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

Get The DevOps 2.2 Toolkit now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.