Mattermost is an outgoing notification channel.
IncidentRelay supports two Mattermost delivery styles:
- Incoming webhook mode.
- Bot API mode with interactive buttons and message updates.
Bot API mode is recommended when you want ACK/Resolve buttons.
Use this mode when you only need one-way notifications.
Typical config:
{
"webhook_url": "https://mattermost.example.com/hooks/..."
}Use this mode for:
- Acknowledge button;
- Resolve button;
- message updates after ACK/Resolve;
- better user attribution.
Typical config fields:
{
"base_url": "https://mattermost.example.com",
"bot_token": "...",
"channel_id": "...",
"callback_secret": "change-me"
}Set [server] public_base_url correctly, because buttons need callback URLs that Mattermost can reach.
A user can have a Mattermost user ID in their profile. This is useful for attribution when the user clicks ACK/Resolve buttons.
The channel test sends a test notification through the configured Mattermost channel. It does not prove that a real alert route will match or that severity filters will allow the alert.
Check:
- Channel is enabled.
- Channel is attached to the matched route.
- Severity filter allows the alert severity.
- Bot token or webhook URL is correct.
public_base_urlis reachable from Mattermost for buttons.