Discord¶
Send alerts to a Discord channel using a server webhook.
Setup¶
- In Discord, open Server Settings → Integrations → Webhooks → New Webhook
- Choose the channel, set a name and avatar, click Copy Webhook URL
Adding a Discord channel¶
Payload format¶
Wanepia sends a Discord embed:
{
"embeds": [
{
"title": "payments-api — DOWN",
"description": "Status changed: **up → down**\nReason: 3 consecutive failures",
"color": 15158332
}
]
}
| Status | Colour (decimal) |
|---|---|
down |
15158332 (red) |
degraded |
15844367 (yellow) |
up |
3066993 (green) |
Troubleshooting¶
- Discord webhooks have a rate limit of ~30 requests / minute per webhook. If you have many entities and a short cooldown, consider raising
cooldown_seconds. - Use
wnp notify logsto see delivery status and error messages.