BFCMBlack Friday 2026: 30% OFF all Starter, Pro & Scale plans with code BFCM2026Claim deal →
All 10 Monitoring Templates
Edge ServerlessCloudflare Workers · D1 · R2 · Cron Triggers

Cloudflare Workers & Edge API Stack.

Verifies your Workers routes externally from non-Cloudflare ASNs while wrapping scheduled() Cron Triggers in pure Fetch API heartbeats.

Option 1: alertondown.yaml (GitHub Action & CLI GitOps Sync)
# alertondown.yaml — Cloudflare Workers Edge Stack
monitors:
  - name: "Workers Production Edge API"
    url: "https://edge.example.com/health"
    type: api
    intervalSec: 30
  - name: "R2 Custom Assets Domain"
    url: "https://cdn.example.com/ping.txt"
    type: http
    intervalSec: 60
  - name: "Workers Scheduled Cron Trigger"
    url: "https://alertondown.com/hb/replace_me"
    type: heartbeat
    intervalSec: 900
Option 2: main.tf (Terraform & OpenTofu Provider)
resource "alertondown_monitor" "workers_api" {
  friendly_name         = "Workers Production Edge API"
  target_url            = "https://edge.example.com/health"
  monitor_type          = "api"
  interval_sec          = 30
  expected_status_codes = "200"
  check_ssl_errors      = true
}
Option 3: Cron / Heartbeat / CLI Instrumentation
import { createHeartbeat } from "@alertondown/sdk";
export default {
  async scheduled(_evt, env, ctx) {
    ctx.waitUntil(createHeartbeat(env.ALERTONDOWN_HB_TOKEN).wrap(() => runEdgeSync(env)));
  },
};

Production Readiness Checklist

  • Works natively on workerd without nodejs_compat polyfills
  • Monitor Cloudflare official status (/services/cloudflare) side-by-side
  • Verify custom domain SSL chains and HSTS headers continuously
  • Gate wrangler deploy workflows with alertondown-action@v1

More Stack Templates