Docs menu

    Mattermost alerts

    Post alerts to a Mattermost channel with an incoming webhook.

    Add a Mattermost channel

    Available on Paid plans

    Mattermost posts the alert through an incoming webhook on your server. Open Integrations, add an incoming webhook and copy its URL. After saving, only the end of the URL is shown.

    1. In Mattermost, add an incoming webhook and copy its URL.
    2. Open Alerts. Under Add channel, set Type to Mattermost.
    3. Paste the URL into Mattermost webhook URL.
    4. Choose Add channel.
    A Mattermost incoming webhook on example.com.
    The Add channel form with Type set to Mattermost and Mattermost webhook URL set to https://example.com/hooks/demo. The SMS (Coming soon) question is under Type, and Add channel is at the bottom.The Add channel form with Type set to Mattermost and Mattermost webhook URL set to https://example.com/hooks/demo. The SMS (Coming soon) question is under Type, and Add channel is at the bottom.

    The URL has to be https, and the path has to end with /hooks/ and an id. Any public host is allowed, including a port. A private or local address is refused, the same way a monitor URL is. The check runs again when the alert is sent. Choose Replace URL and New Mattermost webhook URL to change it. Send test is described on How alerts work.

    When it fails

    • Enter the webhook URL

      Why: The value is not a URL.

      What to change: Paste the webhook URL.

    • Use the Mattermost incoming webhook URL (https://your-server/hooks/…)

      Why: The path is not an incoming webhook.

      What to change: Copy the URL from Integrations.

    • The message starts with Webhook URL rejected:

      Why: The host is not a public address.

      What to change: Use the public address of your Mattermost server.