Skip to main content

Discord

1. Create the webhook

  1. In Discord, open Server Settings → Integrations → Webhooks, or the channel's Edit Channel → Integrations.
  2. New Webhook, name it, and pick the channel.
  3. Copy Webhook URL. It is on discord.com/api/webhooks/, followed by a numeric webhook ID and a secret.

You need Manage Webhooks on the server to do this.

2. Create the contact point

Insights → Alerting → Contact points → New contact point, type Discord.

FieldNotes
Webhook URLThe URL you copied
TitleOptional. Takes a template
Avatar URLOptional. An image URL to use as the sender's avatar

Then Test.

What arrives

An embed, red while firing and green when resolved, with the alert list in the description and a link to the alert source where one is available.

Discord's own limits apply, so a long notification is trimmed: 256 characters for the title, 4096 for the description. Grouping alerts keeps you well inside that. See Notification policies.

Common failures

Delivery attempt saysCause
404 Unknown WebhookThe webhook was deleted, or the channel was
401The token part of the URL is wrong. Copy the whole URL again
429Discord rate-limited the channel. Group more, or raise the repeat interval
no webhook URL settingThe URL field is empty
Sent, nothing in the channelThe webhook posts to the channel it was created on. Check which one that is in Discord
A webhook URL is a credential

Anyone with the URL can post to that channel. Treat it like a token, and delete the webhook in Discord if it leaks.