By James Wilson · Dec 26, 2026

How to Monitor Third-Party Services Your Website Depends On

I built a Discord bot for my gaming community. It did three things: pulled player stats from a game API, checked a payment service for donation status, and posted server health updates from a hosting provider's API. Three external services. Simple setup. Worked great for months.

Then one Tuesday afternoon, the game API went down for maintenance. No warning. No status page update. Just 503 errors. My bot didn't handle that gracefully. It retried the failed requests in a tight loop, which burned through my rate limit on the payment API (they shared an HTTP client with a global rate limiter). Now two of three services were effectively dead. The hosting API was fine, but the bot's error handling cascaded and the whole thing crashed.

My community saw "Bot is offline" and flooded my DMs. I spent 45 minutes debugging my own code before I realized the problem wasn't mine at all. It was a third-party service I depended on, and I had zero visibility into its status.

That experience taught me something I now consider a rule: if your application depends on an external service, you need to monitor that service independently. Not through your app. Not by checking their status page manually. Independently. Here's everything I learned about doing that.

Why "It's Not My Problem" Is a Dangerous Thought

When I first heard about monitoring third-party services, my reaction was: "Why would I monitor someone else's infrastructure? They're a big company. They have their own engineers."

That's the same logic as saying "I don't need a seatbelt because the other driver is probably a good driver." The other driver's skills don't protect you when they mess up.

AWS went down in 2020 and 2021. Cloudflare had a major outage in 2022. Stripe had processing delays in 2023. These are some of the best-engineered services on the planet. They still have outages. The question isn't whether your third-party dependencies will fail. It's whether you'll find out before your users do.

My Discord bot failure was small scale. But imagine you're running an e-commerce store. Your payment processor goes down during a sale. Your monitoring shows green because your servers are fine. Your team starts debugging checkout code. Ten minutes of looking in the wrong place while customers can't pay. That's not a theoretical scenario. It happens all the time.

The Cascade Effect (How One Failure Becomes Five)

The thing that caught me off guard with my bot wasn't that one service failed. It's that one failure knocked out everything else. That's the cascade effect, and it's the real danger of unmonitored dependencies.

Here's how cascades work in practice:

  • A payment API timeout causes your checkout page to hang for 30 seconds. Users see a spinning wheel and think your site is broken.
  • A CDN outage makes your CSS and JavaScript files unavailable. Your site renders as raw, unstyled HTML. Users think you've been hacked.
  • A DNS provider issue prevents your email service from resolving. All outgoing emails queue up indefinitely. Password resets stop working.
  • An authentication provider timeout causes your login page to return 500 errors. Your server logs show the error, but it looks like your code is broken because the actual cause (external timeout) is buried five stack frames deep.

In every one of these cases, the symptom looks like your app is broken. Your support inbox fills up. Your team debugs the wrong thing. External dependency monitoring cuts through this confusion by telling you immediately: "It's not your server. It's Stripe. It's Mailgun. It's the CDN."

Mapping Your Dependencies (You Probably Have More Than You Think)

After the Discord bot disaster, I sat down and listed every external service my projects depended on. I expected maybe five or six. I counted seventeen.

Payment processing. Email delivery. CDN for static assets. Google Fonts. Analytics scripts. OAuth login providers. reCAPTCHA. A maps widget. A chat widget. Webhook endpoints for three different services. An image processing API. Two different cloud storage providers. And three monitoring-adjacent services I'd added over the years and forgotten about.

Seventeen external dependencies, each one a potential single point of failure. And I was monitoring exactly zero of them.

How to find all your dependencies

Go through your project and check these places:

  • Environment variables: API keys, webhook URLs, service endpoints. Every API key represents an external dependency.
  • Configuration files: Payment gateway settings, email SMTP details, CDN origin URLs.
  • Package dependencies: SDKs for Stripe, Twilio, SendGrid, AWS, Firebase. If you installed an SDK, you depend on that service.
  • Frontend assets: CDN-hosted libraries, Google Fonts, analytics scripts, embedded widgets. View your page source and look for external domains.
  • DNS records: MX records for email, CNAME records for CDNs, TXT records for verification services.

Categorize by "what breaks if this fails"

Once you have your list, sort it by impact:

Criticality Level Definition Examples Monitoring Priority
Critical Failure blocks core user actions (purchasing, logging in, using the main product) Payment processor (Stripe, PayPal), authentication provider (Auth0, Firebase Auth), core business API Monitor every 1 minute, alert via Telegram
High Failure degrades important functionality but doesn't block core actions Email provider (Mailgun, SendGrid), search service (Algolia), notification service (Twilio) Monitor every 1-5 minutes, alert via Telegram + email
Medium Failure causes visible issues but users can work around them CDN (Cloudflare, CloudFront), image processing, maps API, translation service Monitor every 5 minutes, alert via email
Low Failure is barely noticeable or affects only non-essential features Analytics (Google Analytics, Mixpanel), chat widget (Intercom), social login (optional) Monitor every 15 minutes, email or dashboard only

Map dependencies to user flows

This is the step that made the biggest difference for me. For each user journey through your app, list every external service involved:

  • Registration flow: reCAPTCHA (Google) -> Email verification (Mailgun) -> Welcome email (Mailgun)
  • Purchase flow: Product page (CDN for images) -> Cart (your app) -> Payment (Stripe) -> Confirmation email (Mailgun) -> Order webhook (your backend)
  • Login flow: Login page (your app) -> Google OAuth (Google API) -> JWT issuance (your app)

When you look at it this way, you see exactly where a single external failure breaks an entire user journey. My purchase flow had three external dependencies. If any one of them failed, nobody could buy anything.

How I Monitor Each Type of Dependency

Payment processors (Stripe, PayPal, BTCPay)

These are the most critical. A payment API going down translates directly to lost revenue.

What I monitor:

  • The processor's status/health endpoint: Most payment services expose one. I set up an HTTP check in UptyBots that hits it every minute.
  • My own payment endpoint: I monitor the endpoint in my app that initiates payments using UptyBots's API monitoring with response body validation to make sure it returns the expected JSON structure, not just a 200 status code.
  • Webhook delivery endpoint: If I rely on payment webhooks for subscription updates and payment confirmations, I monitor the endpoint that receives them. A webhook endpoint returning 500 errors means I'm missing payment events.

Alert config: Telegram notification immediately. Any payment failure is a drop-everything situation.

Email services (Mailgun, SendGrid, SES)

Email failures are sneaky. Users don't report them quickly. They assume the email is delayed, or they check spam. Meanwhile, password resets aren't arriving. Order confirmations are missing. Time-sensitive notifications go undelivered.

What I monitor:

  • SMTP port: TCP port monitoring on the email provider's SMTP server (port 587 or 465) to detect connectivity issues.
  • API endpoint: If I use the provider's REST API for sending, I monitor it with an HTTP check.
  • Provider status page: I monitor their status page URL with an HTTP check. Changes in status page content often precede official announcements.

CDNs and static assets (Cloudflare, CloudFront, Fastly)

CDN failures are often partial. They affect specific regions while other regions keep working. A CDN outage that hits European users but not US users won't get caught by monitoring from a single location.

What I monitor:

  • A specific static asset URL: I pick a CSS file or JavaScript bundle hosted on the CDN and monitor it with an HTTP check. I validate that the response size is non-zero.
  • Response times: I set response time thresholds that match expected CDN performance (usually under 200ms). CDN slowness that doesn't trigger a full outage still kills user experience.

Authentication providers (Auth0, Firebase Auth, Google OAuth)

If your external auth provider goes down, nobody can log in. From the user's perspective, your entire site is broken.

What I monitor:

  • OAuth endpoints: HTTP checks on the authorization and token endpoints.
  • My own login page: HTTP monitoring with content validation to make sure the login form renders correctly (which requires the auth provider's JavaScript to load).
  • Token validation endpoint: If my app validates tokens against the provider, I monitor that endpoint too.

Cloud APIs (AWS S3, SQS, Lambda, etc.)

What I monitor:

  • Service-specific health endpoints: Most cloud services expose health check URLs.
  • My app's integration points: The endpoints in my application that interact with cloud services. An API monitor that validates the response body catches failures where the cloud service returns errors but my app returns a 200 wrapper.

Third-party scripts and widgets

External JavaScript on your pages can cause visible problems when the provider has issues. Blank chat widgets. Missing analytics. Broken social login buttons. Or worst case, JavaScript errors that break your entire page because a script loaded synchronously and threw an exception.

What I monitor:

  • Script URLs: I monitor the CDN URLs for any third-party JavaScript I load. If the script URL returns a non-200 status, the widget will break on my site.
  • Load time impact: If a third-party script blocks page rendering, its slowness becomes my slowness. I set response time thresholds on my page load monitoring.

What My Monitoring Dashboard Looks Like Now

In UptyBots, I organized my monitors into groups so I can see at a glance whether the problem is mine or external:

Group Monitors Check Interval Alert Channel
Payment Services Stripe API, PayPal API, my /payment endpoint 1 min Telegram + Webhook
Email Services Mailgun SMTP (port 587), Mailgun API, my /send-email endpoint 5 min Telegram + Email
CDN and Assets CDN static asset URL, Google Fonts, external JS libraries 5 min Email
Authentication Google OAuth endpoint, my /login page 1 min Telegram + Email
Cloud Services S3 health, SQS health, app endpoints using these services 5 min Email + Webhook

When something breaks, I look at this dashboard first. If my own infrastructure monitors are green but a third-party group is red, I know the problem is external. No wasted time debugging my own code.

When a Third-Party Service Goes Down: My Playbook

Knowing something is down is half the battle. Having a plan for what to do next is the other half. Here's the playbook I follow:

Step 1: Confirm the failure (1-2 minutes)

  • Check UptyBots dashboard to see which monitors are failing.
  • Verify the failure is on the third party's side, not mine (my own HTTP, ping, and port monitors should be green).
  • Check the third party's official status page.

Step 2: Figure out the blast radius (2-5 minutes)

  • Which user flows are affected? (I check my dependency map.)
  • Is the failure total or partial? Some users might still work if the failure is region-specific.
  • Can users work around it? If Google login is down, can they use email/password login instead?

Step 3: Communicate (5-10 minutes)

  • Update the status page: "Payment processing is currently degraded due to a third-party provider issue. Our team is monitoring the situation."
  • Prep the support team with a canned response.
  • If it affects revenue, estimate the impact with our Downtime Cost Calculator.

Step 4: Activate fallbacks (if available)

  • Switch to a backup payment processor if I have one configured.
  • Enable cached content serving if the CDN is down.
  • Queue emails for retry if the email provider is temporarily unavailable.
  • Show a user-friendly message: "Payments are temporarily unavailable. Please try again in a few minutes."

Step 5: Monitor recovery

  • UptyBots sends a recovery notification when the service comes back.
  • After recovery, verify that any queued operations (emails, payments, webhooks) actually processed.
  • Update the status page to "Resolved."
  • Review: How quickly did I detect it? How quickly did I communicate? What could be better?

Building Resilience (So Failures Hurt Less)

Monitoring tells you when something fails. Resilience prevents the failure from reaching your users. These are the patterns I've adopted:

Timeouts and circuit breakers

This is the lesson from my Discord bot crash. I had no timeouts on third-party API calls. When one service hung, everything else piled up behind it.

Now I set aggressive timeouts on every external call:

  • 5-10 seconds for non-critical APIs
  • 10-15 seconds for payment and auth APIs
  • Circuit breaker pattern that stops calling a failing service after 3 consecutive failures. This prevents the cascade I experienced, where one failing service took out everything else.

Graceful degradation

A third-party failure should degrade your app, not destroy it:

  • Analytics service down? Load the page without analytics. Don't let a script timeout block page rendering.
  • Chat widget fails? Hide it and show a "Contact us" link instead.
  • CDN unreachable? Serve assets from your own server as a fallback.
  • Google login unavailable? Prominently display the email/password login option.

I learned this the hard way. My bot didn't have graceful degradation. When one API failed, the entire bot crashed. If I had designed it to continue working with reduced functionality (post stats without the game API data, still process donations even if stats are unavailable), the outage would have been a minor inconvenience instead of a total failure.

Redundant providers for critical services

For the stuff that really matters:

  • Email: Primary on Mailgun, failover to AWS SES.
  • Payments: Primary on Stripe, manual fallback to PayPal or bank transfer.
  • CDN: Multi-CDN setup with automatic failover (more complex but near-zero-downtime delivery).

Even if switching requires manual intervention, having the backup configured and ready reduces failover time from hours to minutes.

Queue and retry for non-real-time operations

Email sending, webhook delivery, data sync. These don't need to complete instantly. Run them through a queue with retry logic. When the third-party service is down, messages accumulate. When it recovers, the queue drains automatically. No data lost, just delayed.

Combine this with queue depth monitoring (using UptyBots's API or port monitoring) to detect when the queue is growing beyond normal levels. A growing queue often signals a third-party failure before your HTTP checks catch it. For more on monitoring these background processes, read about monitoring cron jobs and background tasks.

Real Failure Scenarios (And What Monitoring Would Have Changed)

Scenario 1: Payment processor 500s during a sale

An online retailer running a Black Friday promotion saw their conversion rate drop to zero for 22 minutes. The website was up. Products were browsable. Carts worked. But every attempt to pay returned an error. Without third-party monitoring, the team spent the first 10 minutes debugging their own checkout code.

With monitoring: An API monitor on the payment endpoint would have detected the 500 errors within 1 minute. The alert would have immediately pointed the team to the external service. Combined with a prepared playbook (enable "pay by invoice," display "payment temporarily unavailable" message), the impact could have been reduced from 22 minutes to under 5.

Scenario 2: CDN outage breaks page rendering

A media website loaded its CSS framework from a public CDN. When that CDN had a brief outage, the website displayed as raw, unstyled HTML. Users assumed the site was hacked. The team received dozens of panicked messages. Their own server was perfectly healthy.

With monitoring: An HTTP monitor on the CDN-hosted CSS URL would have flagged it immediately. Even better, designing the app with a local CSS fallback would have prevented any visible impact.

Scenario 3: Email rate limit blocks everything

A SaaS platform sent marketing and transactional emails through the same provider account. A marketing blast hit the provider's rate limit, which blocked all subsequent emails, including password resets and account confirmations. Users couldn't create accounts or reset passwords for 4 hours.

With monitoring: A port monitor on SMTP and an API monitor on the sending endpoint would have caught the block when transactional emails started failing. The fix: separate marketing and transactional emails into different accounts.

Don't Forget SSL on Third-Party Endpoints

Your API calls to third-party services use SSL too. If a provider's SSL certificate expires or gets misconfigured, your app's calls to that service will fail with SSL errors. You can't control their certificate renewal, but you can monitor it and get advance warning.

I add UptyBots SSL monitors for the domains of my critical third-party services. If their certificate is about to expire, I know before the expiration causes my API calls to fail. That gives me time to contact the provider or prepare a workaround. For more on this, check out SSL expiration alerts.

The Checklist I Use Now

  1. Map all external dependencies: Audit code, config files, and DNS records for every third-party service.
  2. Categorize by criticality: Which failures block revenue? Which degrade experience? Which are barely noticeable?
  3. Add monitors for critical and high dependencies: HTTP/API monitors for API endpoints, port monitors for SMTP and custom TCP services.
  4. Set appropriate check intervals: 1-minute for payment and auth, 5-minute for email and CDN, 15-minute for analytics and widgets.
  5. Configure alert routing: Critical stuff goes to Telegram. Medium goes to email. Follow our guidance on balancing alert notifications.
  6. Prepare a response playbook: For each critical dependency, document what happens when it fails and what your team should do.
  7. Implement graceful degradation: Make sure third-party failures degrade your app, not destroy it.
  8. Review quarterly: Dependencies change. New services get added, old ones get replaced. Keep your monitoring current.

How This Fits Into Your Overall Monitoring

Third-party monitoring is one layer in a multi-layer monitoring strategy:

  • Your infrastructure: HTTP, Ping, Port, SSL, Domain monitors on your own servers and domains.
  • Your application: API monitors with response validation on your own endpoints.
  • Your background tasks: Cron job and worker monitoring for the invisible stuff.
  • Your dependencies: HTTP and API monitors on third-party services (what this post covers).
  • Your communication: A status page for transparent communication during incidents.

When all layers are covered, you can diagnose any failure in minutes. Is it my server? My application? A background task? Or a third-party dependency? The answer determines the response, and having it immediately saves real time during every incident.

FAQ

Do I really need to monitor services I don't control?

Yes. You can't fix their service, but you can detect the failure instantly, communicate with your users, and activate fallbacks. The alternative is finding out when your customers tell you, 10 to 30 minutes later, after you've already lost sales and trust.

Won't monitoring third-party status endpoints give false positives?

Sometimes. That's why I monitor both the third-party endpoint and my own endpoint that depends on it. If both fail, it's a real problem. If only the third-party status page fails but my own endpoint still works, it might be a status page issue, not a service issue.

How many dependencies is too many?

There's no magic number, but each dependency adds risk. The math is straightforward: if each service has 99.9% uptime, ten independent services give you a combined probability of about 99% that at least one is up at all times. But it also means about 1% of the time, at least one is down. The more dependencies you have, the more important it is to monitor all of them and have fallbacks for the critical ones.

Should I monitor my dependencies from the same locations as my main site?

Ideally yes. If your users are mostly in Europe and a third-party service fails specifically for European traffic, you want your monitoring to catch that. UptyBots's multi-location monitoring helps here.

What about services that don't have a public health endpoint?

Monitor your own endpoint that calls the service. If your /send-email endpoint returns errors because Mailgun is down, you've effectively detected the Mailgun outage by monitoring your own code's interaction with it.

See setup tutorials or get started with UptyBots monitoring today.

Ready to get started?

Start Free