Skip to main content

Notifications

Learning Focus

By the end of this lesson you will understand how to configure Cloudflare notifications for proactive monitoring of your zones and services.

What Are Cloudflare Notifications?

Cloudflare Notifications alert you when important events occur — SSL certificate expiration, DDoS attacks, origin server downtime, and usage thresholds. Notifications are free on all plans and can be delivered via email, webhook, or PagerDuty.

Available Notification Types (Free Plan)

NotificationTrigger
SSL certificate expirationUniversal SSL certificate is expiring
DDoS attack alertAn active DDoS attack is detected on your zone
Origin error rateHigh 5xx error rate from your origin server
DNS record changesRecords are added, modified, or deleted
Nameserver changeYour nameservers are changed or removed
Usage-based billingApproaching or exceeding usage limits (Workers, KV, etc.)
Passive origin monitoringOrigin appears unreachable

Configuring Notifications

Step 1: Navigate to Notifications

  1. Go to Cloudflare Dashboard → Notifications → Create

Step 2: Select Notification Type

Choose from the available categories:

  • Security — DDoS, SSL expiration
  • Origin health — 5xx errors, origin unreachable
  • DNS — Record changes, nameserver changes
  • Usage — Billing and quota alerts
  • Account — Login, API token usage

Step 3: Configure Delivery

Delivery MethodHow to Set Up
EmailAdd email addresses (default — always available)
WebhookProvide a webhook URL (Slack, Discord, Teams, custom)
PagerDutyConnect your PagerDuty account

Webhook Example (Slack)

Slack incoming webhook payload (auto-generated by Cloudflare)
{
"text": "Cloudflare Alert: DDoS attack detected on example.com",
"attachments": [
{
"color": "danger",
"fields": [
{ "title": "Zone", "value": "example.com" },
{ "title": "Attack Type", "value": "HTTP Flood" },
{ "title": "Status", "value": "Mitigating" }
]
}
]
}

For most users, these notifications should be enabled:

NotificationWhy
SSL certificate expirationAvoid downtime from expired certificates
DDoS attack alertKnow when your site is under attack
Origin error rateDetect origin server issues before users complain
Nameserver changeDetect unauthorized nameserver modifications

Key Takeaways

  • Cloudflare Notifications are free and provide proactive alerts for critical events.
  • Delivery via email, webhooks (Slack/Discord/Teams), or PagerDuty.
  • At minimum, enable alerts for SSL expiration, DDoS attacks, and origin errors.
  • Notifications require no code — configured entirely through the dashboard.

What's Next