MoonitorMoonitor
All posts

How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Monitor incoming webhooks with uptime checks, event-flow heartbeats and reconciliation to spot missed events, stalled queues and silent processing failures.

18 min read
How to Monitor Incoming Webhooks So Missed Events Don't Slip By

The practical answer to How to Monitor Incoming Webhooks So Missed Events Don't Slip By is to combine more than one kind of check. An uptime check confirms your receiver is reachable. Event-flow signals (how recently events were processed, how old your queue is, how often workers fail) confirm that work is actually getting done. Periodic reconciliation against the provider's records confirms that individual events haven't gone missing. The first check catches loud failures like outages and bad deploys. The others catch quiet ones, like a provider that silently stopped sending events or a worker that returns 200 but never finishes the job.

One thing to know up front: no single check proves everything. Each layer answers a different question, and the rest of this post shows how to combine them without drowning in noisy alerts. 🙂

How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Picture this. It's Friday afternoon, and your payment provider stops delivering invoice.paid events. Maybe the endpoint got auto-disabled after a burst of errors, or someone rotated a signing secret. Nothing crashes. No dashboards turn red. You go home, enjoy your weekend, and on Monday morning a customer emails to ask why their account still says unpaid.

I've seen versions of this story more times than I'd like. The core problem is that webhooks are push-based. If nothing arrives, your system can't tell the difference between 'nothing happened' and 'something happened and nobody told me'. Silence looks exactly like a quiet day.

Compare that with polling. When you poll an API and the request fails, you see the failure on your side: a timeout, a 500, an error in your logs. With webhooks, the failing part is often outside your line of sight, so you have to build the visibility yourself.

That's why I think about four separate questions:

  • Endpoint availability: can the provider reach your receiver and get a sensible answer?
  • Event arrival: are events showing up at the pace you'd expect for that feed?
  • Processing health: are accepted events moving through your queue and workers?
  • Completeness: does what you stored match what the provider says it sent?

How webhook receivers fail

Before choosing monitors, it helps to know what you're guarding against. Webhook failures fall into five families, and each one needs a different kind of detection.

  • Loud failures. The server is down, the SSL certificate has expired, a DNS change points the domain somewhere wrong, or a firewall or WAF starts blocking the provider's IP ranges. These are obvious once you look, and an uptime check catches most of them quickly.
  • Quiet failures. The provider disables your endpoint after repeated errors, a signing secret gets rotated, or someone accidentally removes an event subscription. Your server is perfectly healthy and simply hears nothing.
  • Processing failures. Your handler returns 200, then the queue, worker or database fails downstream. The provider thinks everything is fine. You think everything is fine. The data says otherwise.
  • Timeouts. The receiver does too much work inline, such as calling other APIs or writing several tables, and the provider gives up before you respond. From their side, that's a failed delivery.
  • Deploy-related failures. A route gets renamed, or auth middleware is accidentally applied to the webhook path. Everything passes in staging because nobody tested the real provider call.

Diagram: Diagram showing the webhook journey from provider to receiver to queue to worker to database, with numbered failure points marked along the path (DNS/SSL, endpoint down, timeout, queue failure, worker crash) and short labels for loud versus quiet failures for How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Here's what I'd take from this: no single monitor covers all five. Endpoint checks are best at loud, infrastructure-level failures. Quiet and processing failures need you to watch for the absence of progress, which is a different job entirely.

Step 1: Monitor webhook endpoint availability

Let's start with the easy layer. This is classic uptime monitoring, applied to your webhook receiver.

  1. Create an HTTP/S monitor on a dedicated health route. Put it on the same service and infrastructure as the receiver, for example /healthz alongside /webhooks/payments. Be clear about what this proves: the host, runtime and ingress are responding. It does not prove the webhook route itself works, that its auth or signature handling is configured correctly, or that the provider's own network path can reach you.
  2. Resist the urge to hit the real webhook URL with fake payloads. It's tempting, but it can trigger signature failures, pollute your event tables or fire real business logic. A lightweight health route that returns a small status response is safer. Keep it cheap, with no heavy queries and no calls to third parties.
  3. Verify the real route another way. Use the provider's test mode or a staging receiver to send a genuine test delivery after each deploy that touches the webhook path. Your provider's delivery log will then show whether the actual route accepted it.
  4. Add SSL certificate and domain expiration monitoring. An expired certificate makes most providers reject delivery outright, and it's one of the most avoidable outages there is. Alert at 14 days and again at 7, so there's time to fix it without a scramble.
  5. Add DNS monitoring. If a record on your webhook domain changes unexpectedly, whether through a well-meaning teammate, an expired registrar setting or something less friendly, traffic can quietly go somewhere else. DNS record change detection tells you the moment it happens.
  6. Use multi-region verification. A single flaky network path shouldn't wake anyone at 3am. If you confirm failures from more than one region before alerting, you hear about real outages and skip many false alarms.
  7. Add port monitoring if it applies. If your receiver sits behind a non-standard port or a separate ingress, check that port directly as well.

This layer takes minutes to set up and catches most infrastructure-level outages: a dead host, an expired certificate, a broken DNS record. What it can't see are route-level mistakes, provider-side disabling, or anything that happens after your handler responds. That's what the next layers are for.

Does a 200 webhook response prove processing worked?

No. A 200 tells the provider your receiver accepted the delivery. It says nothing about whether the work behind it got done.

Most good receivers follow an 'acknowledge fast, process later' pattern. The handler validates the signature, writes the event somewhere durable such as a queue or a table, returns 200, and lets a worker do the real work. Providers like Stripe recommend this approach, and it keeps you inside their timeout limits.

But look at where things can break after that 200 goes out. The queue is down, the worker crashed, the database is locked, or a migration changed a column. The provider sees success. Your uptime monitor sees success. Meanwhile, events pile up unprocessed.

One option is to make the health check a bit smarter. Have your health route verify that it can reach the queue and the database, and return a simple status string. Then use a keyword monitor to alert when the response contains something like degraded instead of ok. Just don't make it heavy. A quick connectivity check is plenty, and expensive queries every minute from several regions would create a load problem of your own.

A health check only tells you a dependency looked fine a moment ago, though. To know whether events are actually completing, you need to monitor the processing side directly, which is what the next two sections cover.

How to detect when webhook events stop arriving

Here's the question I get most: how do you know if a provider has stopped sending webhooks?

The honest answer is that you can't know from a single signal. A stale timestamp might mean the provider stopped delivering, or it might simply mean nobody bought anything for an hour. So I split the problem into four signals, each with its own job.

  • Event-arrival staleness. Track the time since the last event was received for each feed. Alert when it exceeds what's normal for that feed's cadence. This points at the provider, your endpoint configuration or the network path.
  • Queue age and backlog. Track how old the oldest unprocessed event is, and how many are waiting. Alert when age grows past what your workers normally need. This points at stalled or slow consumers, even while events keep arriving.
  • Worker success and failure rate. Track how many jobs complete versus fail or retry. A rising failure rate is an early warning that shows up well before a queue backs up.
  • Reconciliation. Compare the provider's own record of what it sent against what you stored and processed. This is the only signal that can spot an individual lost event.

For each event, record the receipt time, the provider's event ID, the response status and a processing state (for example received, queued, processed or failed). With that, you can tell events that never arrived apart from events that arrived and failed later. Those are very different incidents with very different fixes.

Chart: Line chart of webhook events received per hour over 48 hours, showing a normal daily pattern, then a flat line where events stop, with a shaded threshold band and an alert marker where the staleness check fires for How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Example: Set a webhook event staleness threshold

Say you run a UK subscription product and your billing provider sends invoice.paid events. Pull a couple of weeks of receipt timestamps and look at the largest gap between events in each time band. Suppose you find this:

  • Weekdays, 08:00 to 20:00 UK time: the longest normal gap is about 12 minutes. A threshold of 30 minutes gives room for a lull without hiding a real stall.
  • Overnight and weekends: the longest normal gap is a couple of hours. A threshold of 4 hours avoids the 2am false alarm.

Two practical notes. Store timestamps in UTC, but define your alert windows in the Europe/London time zone, so 'business hours' stays correct when the clocks change between GMT and BST. And review the numbers after bank holidays and seasonal peaks, because a flat threshold tuned in March may be wrong by December.

Set alert deadlines around provider retry windows

Provider retry windows are finite, so your alert needs to fire well before the window closes. As examples, Slack's Events API has retried failed deliveries just three times at short intervals, while Stripe has retried failed live-mode deliveries with exponential backoff for up to three days. These schedules vary by product and mode and can change, so check each provider's current documentation rather than trusting my summary.

Reconcile webhook events against provider records

Even with good monitoring, some events will go missing. A reconciliation job is how you find them. Here's a simple shape for it:

  1. Fetch events from the provider's API or event list for a fixed window, say the last 24 hours, leaving a margin so in-flight events aren't flagged.
  2. Compare their IDs against the event IDs you stored.
  3. For anything missing, replay it using the provider's resend tool, or fetch and process it yourself, idempotently.
  4. Record the count of mismatches, and alert if it's above zero (or above a small tolerance).

Run it daily or hourly depending on how much a missed event costs you. It's also your best tool for low-volume or irregular feeds, where staleness alerts are ambiguous.

Use provider delivery dashboards for diagnosis

Provider delivery logs are great for diagnosis. Stripe shows delivery attempts and endpoint status, and GitHub exposes webhook delivery details and supports redelivery. Use them to work out whether your endpoint failed to respond or your app failed after receipt. But I wouldn't rely on them as your primary alert source. Nobody is watching a third-party dashboard at 4pm on a Friday.

Use heartbeat monitoring to check webhook event flow

Heartbeat monitoring is refreshingly simple. Your system pings a unique URL, and you get alerted if a ping doesn't arrive on schedule. It flips the usual model: instead of a monitor checking your service, your service tells the monitor it's doing its job. It's the same approach you'd use for cron job monitoring, and it suits event pipelines too, as long as you're clear about what it can and can't tell you.

What a webhook heartbeat proves and what it doesn't

A heartbeat sent after successful processing proves that at least one event was processed successfully within the grace period. That's it. It detects a prolonged gap in successful processing. It does not prove every expected event arrived, that no individual event was lost, or that the provider is still delivering the right event types. And it only means something when the feed has a known, reasonably steady cadence. On a feed that might legitimately be silent for hours, a missed heartbeat is ambiguous.

So think of a heartbeat as one signal among several. Pair it with queue age and backlog metrics and worker failure rates, and add reconciliation wherever losing a single event matters.

Two types of webhook heartbeat

It helps to keep these separate, because they answer different questions.

  1. Event-driven heartbeat (for steady feeds). The worker that finishes processing pings a heartbeat URL after each successfully processed event. Putting the ping at the end of the flow is what makes it meaningful. Set the grace period comfortably above the longest normal gap, as in the threshold example above.
  2. Scheduled canary (for quiet or irregular feeds). A scheduled job pushes a clearly marked test event through your internal path, and pings a separate heartbeat only if that event is processed successfully. Be honest about its scope: unless the canary is sent through the real provider integration, it validates your queue, worker and database, not the provider-to-production delivery path or the provider's endpoint configuration. Keep it on its own heartbeat so it never masks a silent real feed.

A couple of habits make this more reliable.

First, use separate heartbeats per provider or event type: one for payments, another for your CRM, another for repository events. When one goes quiet, you know which pipeline to open first. Second, give scheduled jobs their own heartbeat. A reconciliation job or queue consumer that silently stops running is just another quiet failure.

Here's roughly where the ping sits in the flow, in pseudocode:

receive webhook
  verify signature
  check event ID not already stored
  store event with state = received
  write event to queue
  return 200

worker picks up event run business logic set state = processed (or failed) ping heartbeat URL <-- only on success

If the queue stalls, the worker crashes or the database locks, the ping never fires, and the alert does. If the cause is a single dropped event while others keep flowing, the heartbeat stays green, which is exactly why reconciliation and failure-rate metrics sit alongside it.

Diagram: Flow diagram showing a webhook arriving, being queued, processed by a worker, then pinging a heartbeat URL on a monitoring dashboard, with a timer showing the grace period and an alert branch if no ping arrives for How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Handle webhook retries and provider outages

Retries are a safety net, but every provider does them differently. The details below were accurate when I wrote this, but they're time-sensitive, so confirm each against the provider's current official documentation.

  • Know the retry behaviour. Stripe has retried failed live-mode deliveries for up to three days with exponential backoff. Slack has retried a small number of times within minutes. Amazon EventBridge retries by default for up to 24 hours, and can send exhausted events to a dead-letter queue. GitHub documents manual redelivery rather than promising automatic retries. Some providers also auto-disable endpoints after repeated failures.
  • Make processing idempotent. Retries mean you'll sometimes see the same event twice. Store provider event IDs and ignore duplicates, while still recording the delivery attempt. Some providers, such as Slack, also send retry headers that help you spot a repeat.
  • Acknowledge only after durable acceptance. Return 200 once the event is safely in a queue or persistent store, not before. Otherwise you can tell the provider all is well and then lose the event.
  • After your own outage, replay. Once you're back up, use the provider's replay or resend tools, then reconcile against their records for anything that fell outside the retry window.
  • Work out whose outage it was. Check the provider's status page, then compare against your uptime monitoring history. If your multi-region checks were green and events still stopped, the problem is probably upstream or in configuration. If your checks went red, it's likely on your side.
  • Tell your customers. If delayed events affect them, such as late notifications or pending orders, post an update on your status page and keep the incident history. A short, honest message beats a flood of support tickets.

Then build yourself a post-incident checklist:

  1. Replay missed events from the provider.
  2. Reconcile against the provider's records.
  3. Confirm your processing backlog is shrinking.
  4. Confirm every heartbeat is green again.

What webhook monitoring alerts should you configure?

More alerts doesn't mean better monitoring. The rule I follow is to alert on outcomes, not every blip. Reserve your urgent channels for situations where events are being lost or stalled, and send everything else somewhere quieter.

Signal What it catches Suggested urgency Suggested channel
Endpoint down from multiple regions Outages, bad deploys, firewall or WAF blocks Critical, page immediately Slack, Telegram or phone integration
Event-arrival staleness beyond threshold Silent providers, disabled endpoints, broken subscriptions High Slack plus email
Missed heartbeat after grace period Stalled workers or consumers, prolonged gaps in successful processing High Slack plus email
Queue age or backlog above limit Slow or stuck consumers while events still arrive High Slack plus email
Reconciliation mismatch Individual lost or unprocessed events Medium to high, depending on cost of a miss Slack plus email
DNS record change on the webhook domain Traffic quietly redirected High Slack plus email
SSL certificate expiring (14 and 7 days) Providers rejecting delivery Warning Email and Slack
Health check reports degraded dependency Queue or database trouble Medium Slack
Response times nearing the provider's timeout Slow handlers, early timeout risk Early warning Email or a low-priority channel

Comparison: Comparison table graphic with columns for signal, what it catches, urgency and alert channel, listing endpoint down, missed heartbeat, SSL expiry, DNS change, degraded dependency and slow response times, with colour-coded urgency levels for How to Monitor Incoming Webhooks So Missed Events Don't Slip By

A quick note on that last row. Rising response times are one of the best early warnings you'll get. If your handler normally answers in 200ms and has crept up to several seconds, you're approaching timeout territory long before anything actually fails.

How to test a webhook receiver safely

A monitoring setup you've never tested is a monitoring setup you hope works. Here's a safe way to rehearse.

  1. Use the provider's test mode or sandbox events. Don't use production data for experiments.
  2. Send to a staging receiver first. Give it its own monitor and heartbeat so you can practise the alerts without disturbing anyone.
  3. Treat tunnelling tools as development-only. They're handy for local work, but never leave one exposed.
  4. Verify signature validation both ways. Send a valid payload and a tampered one. The first should be accepted, the second rejected.
  5. Break things on purpose in staging. Stop the worker, pause the queue, and confirm your heartbeat and queue-age alerts actually fire within your thresholds.
  6. Replay a duplicate event. Check that idempotency holds and nothing happens twice.
  7. Run a short checklist before every release that touches the webhook route. Confirm the route path, auth middleware, signature check and health endpoint, so a renamed route doesn't ship unnoticed.

Optional example: a starter setup in Moonitor

Everything above works with any tooling. If you'd like a concrete starting point, and you happen to use Moonitor, this is the setup I'd begin with. Please treat it as a product example rather than a requirement, and check Moonitor's site for current features, trial terms and limits.

  • One HTTP/S monitor on the receiver's health route.
  • One SSL and domain expiration monitor for the webhook domain.
  • One DNS monitor to catch unexpected record changes.
  • One heartbeat per steady provider pipeline, each with a grace period matched to that feed's real traffic, plus a separate canary heartbeat for any quiet feed.

From there, route alerts by severity: critical issues to a chat channel such as Slack, Discord or Telegram, lower-priority ones to email. Response-time history and incident records help you spot gradual degradation and review what happened afterwards, and a status page lets customers see integration health for themselves. Queue-age metrics, worker failure rates and reconciliation usually live in your own application or observability stack, so plan to feed those in rather than expecting an uptime tool to produce them.

Frequently asked questions about monitoring incoming webhooks

How do I know if a provider stopped sending webhooks?

Track the time since the last event was received for each feed, and alert when it exceeds the normal gap for that time of day. Because a quiet period can be genuine, back this up with periodic reconciliation against the provider's API or event log, which also catches individual events that were sent but never reached you. A heartbeat helps with steady feeds, but it only shows a prolonged gap in successful processing, not every missing delivery.

Does a 200 response prove processing worked?

No. It shows your receiver accepted the request. If you queue work and respond quickly, the job can still fail afterwards. Monitor the processing side with queue age, worker failure rates and a heartbeat sent when processing completes.

What should I alert on?

Start with endpoint downtime confirmed from multiple regions, event-arrival staleness, missed heartbeats, queue backlog age, SSL certificate expiry and DNS changes on the receiving domain. Treat slow response times as an early warning. Keep the urgent channels for things that mean events are being lost or stalled.

How do I test a receiver safely?

Use the provider's sandbox or test events against a staging receiver with its own monitors. Check signature validation and duplicate handling, and deliberately stop the worker to confirm your alerts fire. Avoid sending synthetic payloads to your production handler unless they're clearly marked and handled.

Should I monitor the provider's status page too?

It's useful context, but not a replacement for your own checks. Provider status pages can lag behind real problems and rarely cover issues specific to your account or endpoint configuration.

Incoming webhook monitoring checklist

Webhooks fail quietly, and that's what makes them dangerous. If you only do a few things this week, make it these:

  1. Add an uptime check, SSL expiry and DNS monitoring for your webhook domain.
  2. Send a real test delivery through the provider after every deploy that touches the webhook route.
  3. Log receipt time, event ID and processing state for every event.
  4. Set staleness thresholds from two weeks of real traffic, using UK local time for your windows.
  5. Add queue-age alerts and a heartbeat per steady feed, with a separate canary for quiet ones.
  6. Schedule a reconciliation job against the provider's records.

Do that, and the next time a provider goes silent on a Friday afternoon, you'll hear about it long before Monday.

How to Monitor Incoming Webhooks So Missed Events Don't Slip By

Know before your users do.

Moonitor checks your sites, APIs and cron jobs around the clock, and verifies every failure from a second country before it ever pages you.