Setting up Discord alerts for your game server (downtime, lag and player drops)

Get a Discord message when your game server goes down, lags or loses players: webhook setup step by step, alert rules that don't spam, and a DIY script.

Alerts & DiscordBy the ServerStats teamUpdated 6 min read

Questions

How do I get a Discord notification when my Minecraft server goes down?

Create a webhook in a Discord channel, then point a monitor at your server that posts to that webhook when the server stops answering. ServerStats does this with a Server offline rule on every plan, including Free, from either the plugin or basic mode's query of port 25565.

Do I need a Discord bot for alerts?

No. A channel webhook is enough for alerts and needs no bot or permissions on your Discord server. The ServerStats bot and its slash commands are coming soon.

How do I stop alert spam?

Require a condition to hold for several minutes before firing, set a cooldown between repeats, and alert on sustained problems (a burst of lag spikes, TPS below a value for 5 minutes) rather than single readings.

Which alerts are free?

Free includes one alert rule of the kinds threshold, server offline, lag-spike burst and version or map change, delivered by email or Discord webhook. Operator allows 25 rules and adds churn-risk alerts; Network is unlimited and adds join-drop, revenue-drop and top-spender alerts plus signed webhooks.

Get your first Discord alert

Free for one server, no card. About five minutes to install.