User Tools

Site Tools


Writing /app/www/public/data/meta/development/applications/prometheus-slack-integration.meta failed
development:applications:prometheus-slack-integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
development:applications:prometheus-slack-integration [2017/12/05 10:16] adsilvadevelopment:applications:prometheus-slack-integration [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Prometheus Slack Integration ======
 +
 +The Prometheus-Alertmanager uses the Incoming Webhooks feature of Slack, so first the webhook needs to be set up.
 +
 +From within slack settings, Go to the Incoming Webhooks page in the App Directory and click “Install” (or “Configure” and then “Add Configuration” if it’s already installed):
 +
 +
 +You can then configure your new webhook. Choose the default channel to post to, and then add the integration:
 +{{ :development:applications:configure-webhook.png?600 |}}
 +
 +
 +This will then give us the Webhook URL we need:
 +{{ :development:applications:edit-config.png?600 |}}
 +
 +===== Alertmanager Setup =====
 +
 +an example configuration of alertmanager.yml is shown below:
 +
 +<code yaml>
 +route:
 + group_by: ['job', 'env', 'alertname']
 + # If an alert isn't caught by a route, send it slack.
 + receiver: slack_general
 + routes:
 +  # Send severity=slack alerts to slack.
 +  - match:
 +      severity: slack
 +    receiver: slack_general
 +
 +receivers:
 +- name: slack_general
 +  slack_configs:
 +  - api_url: $WEBHOOK_URL
 +    channel: '#general'
 +</code>
 +
 +That’s all now setup, and you can see your firing alerts in Slack.
 +For more information on how to configure Alertmanager, refer: https://bitbucket.org/errigal/prometheus-monitoring-config