StatusDrift integrates with Mattermost to deliver monitoring alerts directly to your team’s channels. This guide explains how to configure the Mattermost integration using incoming webhooks.
What This Integration Does
The Mattermost integration sends notifications to your channels when:
- A monitored service goes down or becomes unreachable
- A service recovers and returns to normal operation
- SSL certificates are expiring or have issues
- Performance thresholds are exceeded
Messages are formatted with clear status indicators and include relevant details about the monitoring event.
Prerequisites
Before configuring the Mattermost integration, ensure you have:
- A Mattermost workspace with admin permissions to create webhooks
- A StatusDrift account with notification channel management access
- A dedicated channel for monitoring alerts (recommended)
Step 1: Create an Incoming Webhook in Mattermost
First, create an incoming webhook in your Mattermost workspace:
- Log in to your Mattermost workspace
- Click the hamburger menu and select Integrations
- Click Incoming Webhooks
- Click Add Incoming Webhook
- Enter a title like “StatusDrift Alerts”
- Select the channel where alerts should be posted
- Optionally set a custom username and icon
- Click Save
- Copy the Webhook URL that is generated
Step 2: Add the Mattermost Channel in StatusDrift
Now configure the integration in your StatusDrift dashboard:
- Log in to your StatusDrift account at app.statusdrift.com
- Navigate to Notification Channels in the sidebar
- Click Add Channel
- Select Mattermost as the channel type
- Enter a descriptive name like “Mattermost – Ops Channel”
- Paste the Webhook URL from Mattermost
- Click Save to create the channel
Step 3: Assign to Monitors
Connect the notification channel to your monitors:
- Go to Monitors in the StatusDrift dashboard
- Select the monitor you want to configure
- Scroll to the Notification Channels section
- Enable the Mattermost channel you created
- Save your changes
Testing the Integration
Verify your Mattermost integration is working:
- Go to Notification Channels in StatusDrift
- Find your Mattermost channel in the list
- Click the Test button
- Check your Mattermost channel for the test message
Message Format
StatusDrift sends formatted messages to Mattermost that include:
- Status indicator – Color-coded for quick visual identification
- Monitor name – Which service triggered the alert
- Event type – Down, up, SSL warning, etc.
- Timestamp – When the event occurred
- Error details – Response codes or error messages when available
Troubleshooting
Messages not appearing in Mattermost
- Verify the Webhook URL is copied correctly without extra spaces
- Confirm incoming webhooks are enabled in your Mattermost system settings
- Check that the webhook is not deleted or disabled
- Use the Test button in StatusDrift to send a test message
Messages going to wrong channel
- Each webhook is tied to a specific channel in Mattermost
- To change channels, create a new webhook for the desired channel
- Update the Webhook URL in StatusDrift
Formatting issues
- Ensure your Mattermost version supports incoming webhook formatting
- Check if any custom formatting plugins are interfering