User 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.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:applications:prometheus-slack-integration [2017/12/05 10:14] – adsilva | development: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: | ||
| + | {{ : | ||
| + | |||
| + | |||
| + | This will then give us the Webhook URL we need: | ||
| + | {{ : | ||
| + | |||
| + | ===== Alertmanager Setup ===== | ||
| + | |||
| + | an example configuration of alertmanager.yml is shown below: | ||
| + | |||
| + | <code yaml> | ||
| + | route: | ||
| + | | ||
| + | # If an alert isn't caught by a route, send it slack. | ||
| + | | ||
| + | | ||
| + | # Send severity=slack alerts to slack. | ||
| + | - match: | ||
| + | severity: slack | ||
| + | receiver: slack_general | ||
| + | |||
| + | receivers: | ||
| + | - name: slack_general | ||
| + | slack_configs: | ||
| + | - api_url: $WEBHOOK_URL | ||
| + | channel: '# | ||
| + | </ | ||
| + | |||
| + | That’s all now setup, and you can see your firing alerts in Slack. | ||
| + | For more information on how to configure Alertmanager, | ||