Slack is a popular chat service used to speed up real-time communication within a development team or company setting.
Using Slack notifications, you can have alert notifications from your Mackerel organization sent directly to any Slack channel or private group you designate where they will appear in the channel or group's feed.
When a notification appears in Slack, a link to the alert page and links to the services and roles pertaining to the host that triggered the alert as well as an image of the graph showing the alert will be displayed.
Adding Slack to your notification channels
To add a new Slack notification channel, click on “Monitors,” then “Channel Settings,” then “New Channel”. Choose Slack from the list of integrations and give the new notification channel a name. (e.g. "slack (#dev-team)")
Because Mackerel uses Incoming Webhooks to send notifications to Slack, we will need to obtain the Webhook URL. To obtain the Webhook URL, follow the steps below:
- In Slack, open the drop down menu by clicking the down arrow next to your Slack domain's name and select “Configure Integrations.”
- From the “All Services” tab, click the green “Add” button next to “Incoming Webhooks.”
- Select the channel or private group you’d like to have notifications sent to and click “Add Incoming Webhooks Integration.”
Copy the Webhook URL which is then displayed and paste the URL back in Mackerel.
In the “Mentions” drop down menus you can decide what types of alerts you would like to be notified of and who should be able to see notifications.
- Click “Create” to complete set-up. To test the new notification channel, go back to the “Channels” page and click the “Test” button next to the Slack channel. If everything was configured correctly, you should receive a notification in Slack instantly.
If you have any questions please contact our support team at firstname.lastname@example.org