Tallwatch

BlogAlerting

How to get Discord alerts when your website goes down

Send downtime alerts to a Discord channel with a webhook in about five minutes. Then set up the channel, notifications and backup so the alerts still get read in month two.

NK

Nabin Khair, Founder

8 min read

How to get Discord alerts when your website goes down

Yes, you can get a Discord message when your website goes down. You need an uptime monitor that checks your site from the outside, and a webhook on a Discord channel for it to post to. Neither needs code, and the setup takes about five minutes.

Discord is a good home for alerts when your team, or your community, already lives there. It is also easy to get wrong. Alerts land in a busy server, notifications default to mentions only, and nobody is sure whose job it is to look. This guide covers the setup and the few settings that fix those problems.

What you need

  • An uptime monitor. A service outside your own infrastructure that requests your site on a schedule and notices when it fails. A script running on the same server as your site goes down with it.
  • A Discord server where you have the Manage Webhooks permission.
  • A channel for alerts. You will create a webhook on it.

Step 1: Create a dedicated alerts channel

Make a text channel such as #alerts or #incidents. Do not post alerts in #general or a chat channel.

  • Alerts get lost in conversation, and conversation gets drowned out by alerts.
  • You can set notifications for this one channel without being pinged for the rest of the server.
  • The channel becomes a timeline you can scroll back through after an outage.

If the server is public, such as a community server for an open source project, make the alerts channel private to your team. Users do not need to see every check that failed, and your status page is a better place to tell them what is going on.

Step 2: Create the Discord webhook

  1. Open the channel's settings (the gear next to the channel name).
  2. Go to Integrations → Webhooks → New Webhook.
  3. Give it a clear name, like "Uptime alerts", and an avatar if you like.
  4. Click Copy Webhook URL. It starts with https://discord.com/api/webhooks/.

Treat that URL like a password. Anyone who has it can post to the channel. Do not commit it to a public repo or paste it into a shared doc.

Step 3: Connect it to your uptime monitor

Every monitoring tool has a place for this, usually called channels, integrations or alert contacts. In Tallwatch:

  1. Open Settings → Channels.
  2. Add Discord and paste the webhook URL.
  3. Save, then click Send test.
  4. Check that the test message shows up in the Discord channel.

If the test does not arrive, the URL was most likely copied incompletely, or the webhook was deleted from the channel. Fix it now, not during an outage.

Tallwatch's Discord alerts are on Pro and Business. The free plan includes email and Slack; see Slack alerts when your website goes down for that route.

What the alert looks like

In Tallwatch, each event is an embed: red when an incident opens, green when it is acknowledged or resolved. It shows the monitor name, the URL, which regions saw the failure, when it opened and the last error. The title links to the incident, so whoever picks it up is one tap from the details.

Step 4: Make sure someone actually gets notified

This is the step most setups skip. A message in a channel is not a notification on a phone.

  • Set the channel to All Messages. Right-click the channel → Notification Settings → All Messages. By default, many servers only notify on mentions, so alerts post silently.
  • Unmute the server on your phone. A muted server stays muted for every channel in it, including alerts.
  • Name the owner. Put who is on call this week in the channel topic. "Who's looking at this?" is the first question in every incident.

Every person who should hear about outages needs to do the first two on their own devices. Notification settings in Discord are per person, not per channel.

Step 5: Test with a real failure

A test message proves the webhook works. It does not prove your monitor will alert when the site breaks.

Create a temporary monitor that is sure to fail, such as a URL on your domain that returns 404, or a Website monitor whose "Page must contain…" text is not on the page. Wait for the alert in Discord, open the incident, acknowledge it, and then delete the monitor. Now you have seen the whole path work. More on this in how to test your alerting.

Keep the channel worth reading

Alert only on confirmed outages

The fastest way to get an alerts channel muted is false alarms. One check location has a bad minute, posts "DOWN", posts "UP" two minutes later, and after a week nobody looks.

Checking from several regions and alerting only when they agree removes that class of false alarm. That is how multi-region monitoring works, and Tallwatch does it on every plan. In other tools, look for a setting that requires more than one location or more than one failed check before alerting. How to cut false downtime alerts covers the other options.

One message per event

The channel should get a message when an incident opens, when someone acknowledges it and when it resolves. It should not get a message every minute while the site is still down. If your tool repeats alerts, turn that off.

Do not ping @everyone

@everyone on a downtime alert works once. After that, people mute the server, and you have lost the channel for real alerts too. If you want a ping, create a role such as @on-call, give it only to the people who respond, and mention that role.

Discord is not a pager

Discord is good at telling a group of people that something is wrong. It is bad at making sure one specific person wakes up. Phones are on Do Not Disturb, servers get muted, and a message in a channel never escalates to anyone.

So treat Discord as the first step of an escalation policy, not the whole thing:

  1. Post to #alerts in Discord as soon as the outage is confirmed.
  2. If nobody acknowledges within 5 to 15 minutes, notify the on-call person through a channel that gets through at night, such as email with sound alerts, or Telegram.
  3. If there is still no acknowledgement, notify a second person.

Acknowledging at any point stops the later steps. Which alert channel wakes you at 3am compares the options. Tallwatch has no SMS or phone calls, so if your on-call person needs a call, route the final step to a tool that makes one, through a webhook.

The do-it-yourself version

You can post to a Discord webhook from a cron job with a few lines of shell:

#!/usr/bin/env bash
# Run every minute from cron. Posts to Discord when the site does not return 200.
URL="https://example.com"
WEBHOOK="https://discord.com/api/webhooks/XXX/YYY"

status=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "$URL")

if [ "$status" != "200" ]; then
  curl -s -X POST -H "Content-Type: application/json" \
    --data "{\"content\":\"$URL is failing (HTTP $status)\"}" \
    "$WEBHOOK"
fi

It is a good way to see how the pieces fit. It also has every problem this guide warns about:

  • It checks from one machine. A network blip on that machine is a false alarm. If the machine dies, you get silence, and silence looks like everything is fine.
  • It posts every minute for as long as the site is down, because it has no memory of the last alert.
  • It never says the site recovered, and nobody can acknowledge anything.
  • A timeout shows up as status 000, which is easy to misread at 3am.

Fixing each of those means writing and running your own uptime monitor, plus something to watch it.

Common problems

Nothing arrives. Send a test from your monitoring tool. If it fails, check whether the webhook was deleted, the channel was deleted, or someone regenerated the URL. Any of those breaks the old URL without telling you.

Messages arrive but nobody's phone buzzes. The channel is on mentions only, or the server is muted. See step 4.

Too many messages. Look for checks from a single location, no confirmation before alerting, or a monitor that keeps flipping between down and up. Flipping usually means a timeout set too close to your normal response time.

The webhook URL leaked. Delete the webhook in the channel's settings, create a new one, and paste the new URL into your monitoring tool. The old URL stops working immediately.

Set it up

Tallwatch sends Discord alerts on Pro and Business, after at least two regions confirm the outage. Add the webhook, send a test, and the next message in #alerts will be a real one. If you are starting on the free plan, use Slack or email now and add Discord when you upgrade.

Keep reading

Get paged only for real outages

Tallwatch checks from several regions and alerts you when they agree. 10 monitors free, no credit card.