Mattermost provides an enterprise messaging workspace for teams to collaborate securely and effectively. Its scalable solutions offer a centralized hub for intra-company communications that increase agility, efficiency and innovation while meeting advanced security, compliance and audit requirements, which may include deployment to AWS, Azure and private clouds, or even to on-prem environments.
Mattermost can be configured with PagerDuty to receive all incident updates for any PagerDuty Service in any Mattermost channel of your choice. This integration automatically provides pertinent information regarding the state of an incident to your live chat streams, improves communication during incidents, and optimizes your team’s resolution time and process.
- Log in to Mattermost as an administrator.
- Open the system menu and select Integrations.
- On the integrations page, select Incoming Webhook.
- On the Incoming Webhooks management page, click Add Incoming Webhook.
- Configure a new webhook as follows:
- Enter descriptive content for Title and Description, i.e. “PagerDuty” / “Receive updates on PagerDuty incidents”
- In the Channel field, select a default channel that will receive messages from PagerDuty.
- Optionally, if you want to constrain messages to the given channel, enable the Lock to this channel option.
- Click Save.
- On the next page, you should be presented with a webhook URL. Copy and save this URL.
- Navigate to a service that you wish to have send updates to Mattermost.
- Go to the Integrations tab on the service.
- Under Extensions, click New Extension.
- For Extension Type, select Mattermost, and set up the extension as follows:
- Give the extension a descriptive name, i.e. that identifies the recipients of the messages.
- In the Mattermost webhook url field, put the webhook URL created in the above steps.
- Leave the Channel field blank.
- Click Save to complete the integration.
At this point, you should get update messages for PagerDuty incidents on the integrated service in the specified channel. To test the integration, you could manually trigger an incident on the service through the PagerDuty web app.
Changing the Channel of Notification
If you left the Lock to this channel option disabled, you can use the same webhook on different services for submitting incident update messages to other channels.
This is done by setting the optional Channel setting on the PagerDuty extension, as follows:
- In Mattermost, via the web interface, go to the channel that you wish to use as the recipient for PagerDuty updates.
- Copy the last part of the URL after the final forward slash. This will usually be similar to channel name, but in lower case and with dashes in place of spaces.
- Go to the service with the Mattermost extension on it, and go to the Integrations tab.
- Scroll down to find the Mattermost extension, and in the cog icon menu click Edit.
- In the Channel field, put the human-readable channel ID copied in the previous steps.
Frequently Asked Questions
What kinds of updates will show up in Mattermost?
In Mattermost, all of the following types of events will show up as incident update messages:
- Triggering, i.e. when an incident is initially created
- Reassignment (assigning to another user directly) and delegation (assigning to another escalation policy)
- Auto-escalation (due to escalation policy level timeout)