MD. NAZMUL ISLAM
HomeServicesPortfolioCase StudiesBlogAboutContact
ResumeLoginSign Up
Configuring Better Stack Uptime Monitoring for Web Apps
  1. Home
  2. Blog
  3. Configuring Better Stack Uptime Monitoring for Web Apps
Back to Blog
MonitoringDevOpsBetter StackUptimeDeployment

Configuring Better Stack Uptime Monitoring for Web Apps

November 24, 20264 min read1 views0 comments

Learn how to set up Better Stack uptime monitoring for your production web apps, configure alerts, and track incidents effectively.

Configuring Better Stack Uptime Monitoring for Web Apps

When you deploy a web application or a SaaS product, keeping it online is only half the battle. You also need to know immediately when something breaks. As a full-stack developer, I have set up various monitoring tools over the years, and lately, Better Stack has become one of my favorite choices for clear uptime monitoring and incident management.

In this guide, I will show you how to configure Better Stack uptime monitoring for your web apps, set up meaningful status checks, and route alerts so you never miss critical downtime.

Why Choose Better Stack for Uptime Monitoring?

Traditional uptime monitors often just ping a URL every five minutes and send an email if it returns a 500 error. Modern web applications require more nuance:

  • Deep health checks: You want to check database connectivity, API response times, and third-party dependencies.
  • Fast polling intervals: Waiting five minutes to notice your main payment endpoint is down costs real money.
  • Clean incident history: Public status pages keep your users informed and reduce support ticket volume.

Better Stack combines uptime checks, log management, and incident response into a single interface that is fast to set up and pleasant to look at.

Step 1: Setting Up Your First Uptime Check

To get started, log into your Better Stack dashboard and create a new monitor.

  1. Click on Monitors in the sidebar and select New Monitor.
  2. Enter the URL of your web application or API endpoint.
  3. Choose your check frequency. For critical production APIs, a 30-second or 1-minute interval is ideal.
{
  "url": "https://api.example.com/health",
  "check_frequency": 30,
  "expected_status_code": 200,
  "timeout_seconds": 10
}

Make sure you point your monitor to a dedicated health check route rather than just your root domain. A good health check route should verify that your database connection is active and that your primary cache layer is responding.

Step 2: Crafting a Robust Health Check Endpoint

Here is a simple Node.js and Express health check endpoint pattern that I often implement in my client projects:

app.get('/health', async (req, res) => {
  try {
    // Check database connection
    await db.raw('SELECT 1');
    
    res.status(200).json({
      status: 'healthy',
      timestamp: new Date().toISOString(),
      database: 'connected'
    });
  } catch (error) {
    res.status(500).json({
      status: 'unhealthy',
      error: error.message
    });
  }
});

If your database goes down, this endpoint returns a 500 status code, and Better Stack triggers an alert immediately. This is far more effective than just checking if the server is running.

Step 3: Configuring Escalation Policies and Alerts

An alert is only useful if it reaches the right person at the right time. Better Stack allows you to set up escalation policies.

  • Primary Alerts: Send a push notification or SMS to the on-call developer immediately.
  • Secondary Alerts: If the issue is not acknowledged within 5 minutes, escalate to a secondary team member or trigger a phone call.
  • Integrations: Connect your Slack or Discord channels so the entire development team sees the alert in real-time.

When building client projects like JobsiteX or custom SaaS applications, keeping stakeholders informed during rare maintenance windows is crucial for maintaining trust.

Step 4: Creating a Public Status Page

Transparency builds confidence. Better Stack makes it very easy to publish a status page linked to your monitors.

  • Group your monitors logically (e.g., Website, API, Authentication, Mobile Backend).
  • Add your company logo and custom domain.
  • Subscribe your users to email or RSS updates so they know when you are performing scheduled upgrades.

Conclusion

Proper uptime monitoring takes very little time to configure, but it saves hours of stress when unexpected issues arise. By combining fast polling intervals, proper database health checks, and clear escalation policies, you can ensure your web applications remain reliable and your users stay informed.

Need help setting up robust monitoring, CI/CD pipelines, or scaling your next web application? Feel free to get in touch.

Tagged with

MonitoringDevOpsBetter StackUptimeDeployment

Comments

Leave a comment

You must be signed in to comment.

MD. NAZMUL ISLAM

Full-Stack & React Native Developer

Send a project enquiry

Navigation

  • Home
  • About
  • Services
  • Case Studies
  • Blog
  • Contact
  • 한국어 (Korean)

Services

  • Web Development
  • Mobile App Development
  • Custom Software & SaaS
  • SEO & Marketing
  • Domain & Hosting

© 2026 MD. Nazmul Islam. All rights reserved.

Privacy Policy·Terms of Service