Send alerts to Discord
Want your team to see job failures in Discord? Create a webhook in your Discord server, add it as a Discord notification channel in CronJobPro, send a test, and attach it to your jobs. This guide walks you through every click.
Step 1: Create a webhook in Discord
A Discord webhook is a special URL that lets an external service post messages into one channel. You need to be a server admin (or have Manage Webhooks permission) to create one.
- 1
Open Server Settings
In Discord, click the server name at the top left, then choose Server Settings.
- 2
Go to Integrations
In the left sidebar select Integrations, then click Webhooks.
- 3
Create a new webhook
Click New Webhook. Give it a name like CronJobPro and pick the channel where alerts should appear, for example #alerts.
- 4
Copy the webhook URL
Click Copy Webhook URL and save it somewhere safe for the next step, then click Save.
Treat the webhook URL like a password. Anyone who has it can post messages to your channel, so do not share it publicly or commit it to a repository.
Step 2: Add the Discord channel in CronJobPro
- 1
Open Notifications settings
In CronJobPro go to Settings, then Notifications.
- 2
Add a Discord channel
Choose to add a new channel and select Discord as the type.
- 3
Paste the webhook URL
Paste the Webhook URL you copied from Discord, give the channel a clear name, and save it.
- 4
Send a test
Use the Send test button to post a sample message. Check your Discord channel for the test notification before moving on.
If the test does not arrive, re-copy the webhook URL from Discord (it must be the full link, not truncated) and confirm the webhook still points to the channel you expect.
Step 3: Attach the channel to your jobs
A notification channel only sends alerts once it is attached to one or more jobs (or heartbeat monitors). Open a job, find its notification settings, and enable the Discord channel you just created. Repeat for any other jobs that should alert in Discord.
CronJobPro can notify Discord on three alert types: a failure (a non-2xx response, timeout, connection error, or DNS failure after retries), a recovery when the endpoint comes back, and a circuit-breaker or disabled event when a job is auto-disabled after persistent failures.
| Setting | What it does |
|---|---|
| Alert threshold | Suppresses failure alerts until N consecutive failures. Default is 1, so you are alerted on the first failure. |
| Recovery alert | Posts a message when a previously failing job succeeds again. |
| Circuit breaker | Notifies you when a job is auto-disabled after repeated failures, then auto-probes to re-enable it on recovery. |
Discord is one of several channels. You can also add email, Slack, Microsoft Teams, PagerDuty, Opsgenie, or a signed webhook, and attach more than one channel to the same job.