makeporngreatagain.pro
yeahporn.top
hd xxx

Configuring Alert Manager to use Slack

275
  1. Open the Alertmanager configuration:
     $ sudo $EDITOR /etc/alertmanager/alertmanager.yml
  2. Set the default route’s repeat_interval to one minute and update the receiver to use our Slack endpoint:
     route:
       receiver: 'slack'
       group_by: ['alertname']
       group_wait: 10s
       group_interval: 10s
       repeat_interval: 1m
  3. Create a secondary route that will send severe: page alerts to the Slack receiver; group by the team label:
     route:
       receiver: 'slack'
       group_by: ['alertname']
       group_wait: 10s
       group_interval: 10s
       repeat_interval: 1m
       routes:
         - match:
             severity: page
           group_by: ['team']
           receiver: 'slack'
  4. Add a tertiary route that sends all alerts for the devops team to Slack:
     route:
       receiver: 'slack'
       group_by: ['alertname']
       repeat_interval: 1m
       routes:
         - match:
             severity: page
           group_by: ['team']
           receiver: 'slack'
           routes:
             - match:
                 team: devops
               receiver: 'slack'
  5. Update the receiver to use Slack:
     receivers:
     - name: 'slack'
       slack_configs:
         - channel: "#prometheus"
           api_url: APIKEY
           text: "Overview: {{ .CommonAnnotations.overview }}"
  6. Update the inhibit_rules so that any alerts with the severity of ticket for the DevOps team are suppressed when a page-level alert is happening:
     inhibit_rules:
       - source_match:
           severity: 'page'
         target_match:
           severity: 'ticket'
         equal: ['team']

    Save and exit.

  7. Restart Alertmanager:
     $ sudo systemctl restart alertmanager
  8. View your Slack chat and wait to see the firing alert.

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.