OpenUptime

Uptime alerts in Discord

Send down and recovery messages to a Discord channel through a channel webhook, with no bot to run.

Set it up

  1. In Discord, open the server settings (or the channel's settings), then Integrations, then Webhooks.
  2. Create a webhook, pick the channel it posts to and copy the webhook URL.
  3. In OpenUptime, open Alerting, choose Add channel and pick Discord.
  4. Name the channel and paste the URL, which starts with https://discord.com/api/webhooks/.
  5. Save, then press Test: a test message arrives within seconds, and the delivery log below the channels shows whether it went through.

What arrives

When a monitor goes down

🔴 Checkout API is down — Expected 200, got 503

When it recovers

✅ Checkout API has recovered

Good to know about Discord

  • Mentions in the text are switched off, so a monitor name can never ping @everyone.
  • Messages longer than Discord's 2,000-character limit are shortened rather than rejected.

On every channel

  • Every channel is available on every plan, Free included.
  • Choose per monitor which channels it alerts, or turn a channel on for every new monitor.
  • Until someone acknowledges an incident, it can repeat on the mobile app (up to 10 times, by email too if you choose) and escalate to other channels in up to 3 levels.
  • A failed delivery is retried, and the delivery log shows what was sent to which channel and why anything failed.

Get Discord alerts

Add a monitor, connect the channel and press Test. The Free plan includes every alert channel.

Questions

Do I need to add a bot to my server?

No. A channel webhook is enough, and you need the Manage Webhooks permission to create one.

Can I send alerts to a thread or forum?

A webhook posts to the channel it was created for. Create the webhook on the channel where the alerts should appear.

Discord 网站宕机告警

通过频道 Webhook 把宕机和恢复消息发到 Discord 频道,不用自己运行机器人。

配置步骤

  1. 在 Discord 中打开服务器设置(或频道设置),进入“整合”,再进入 Webhooks。
  2. 新建一个 Webhook,选择它要发送到的频道,复制 Webhook 地址。
  3. 在 OpenUptime 中打开“告警”,点击“添加渠道”,选择 Discord。
  4. 给渠道起个名字,粘贴以 https://discord.com/api/webhooks/ 开头的地址。
  5. 保存后点击“测试”:几秒内就会收到一条测试消息,渠道列表下方的投递记录会显示是否发送成功。

收到的内容

监控宕机时

🔴 Checkout API is down — Expected 200, got 503

恢复时

✅ Checkout API has recovered

关于 Discord 的说明

  • 消息中的提及功能是关闭的,所以监控名称永远不会触发 @everyone。
  • 超过 Discord 2000 字符上限的消息会被截短,而不会被拒收。

所有渠道通用

  • 所有渠道在所有套餐中都可用,包括免费版。
  • 可以为每个监控选择要通知的渠道,也可以让某个渠道默认对所有新监控开启。
  • 在有人确认事件之前,告警可以在手机 App 上重复提醒(最多 10 次,也可以选择同时发邮件),并最多分 3 级升级到其他渠道。
  • 投递失败会自动重试,投递记录会显示发到了哪个渠道、失败的原因是什么。

接收 Discord 告警

添加一个监控,连接渠道并点击“测试”。免费版包含所有告警渠道。

常见问题

需要把机器人加到服务器里吗?

不需要。频道 Webhook 就够了,创建它需要“管理 Webhook”权限。

能发到子区或论坛频道吗?

Webhook 会发到创建它的那个频道。请在希望显示告警的频道上创建 Webhook。