How to Monitor Your Supabase App with Vigilmon
Supabase has become the go-to backend-as-a-service for developers who want a Postgres database, authentication, realtime subscriptions, and storage — all in one platform. But when your Supabase project goes down or your API endpoints become sluggish, you need to know immediately. This guide shows you how to set up uptime monitoring for your Supabase app with Vigilmon.
Why Monitor Supabase?
Supabase projects expose several critical endpoints:
-
REST API:
https://your-project-ref.supabase.co/rest/v1/ -
Auth API:
https://your-project-ref.supabase.co/auth/v1/ -
Storage API:
https://your-project-ref.supabase.co/storage/v1/ - Realtime: WebSocket connections
Any of these can degrade independently. A single-region monitor won't catch transient network issues. Vigilmon's multi-region consensus approach ensures you only get paged when multiple independent regions confirm an outage.
Step 1: Identify Your Critical Supabase Endpoints
For most Supabase apps, you want to monitor:
# Your project's REST API health
https://your-project-ref.supabase.co/rest/v1/
# Auth health check
https://your-project-ref.supabase.co/auth/v1/health
# Storage health
https://your-project-ref.supabase.co/storage/v1/status
If your frontend is deployed on Vercel or Netlify, monitor that URL separately.
Step 2: Create a Vigilmon Monitor for Your Supabase API
- Sign up at vigilmon.online (free tier: 5 monitors, 5-minute intervals)
- Click Add Monitor
- Enter your Supabase REST API URL:
https://your-project-ref.supabase.co/rest/v1/ - Set check interval: 5 minutes (free) or 1 minute (paid)
- Enable multi-region consensus: require 2 of 3 regions to confirm failure before alerting
- Add your email for alerts
Step 3: Monitor the Auth Endpoint
Authentication downtime is catastrophic — users can't log in. Add a separate monitor:
URL: https://your-project-ref.supabase.co/auth/v1/health
Method: GET
Expected status: 200
Vigilmon will check this from multiple regions every 5 minutes and only alert if a real outage is confirmed.
Step 4: Add a Custom Health Check to Your App
For a deeper check, add a /api/health endpoint to your Next.js or SvelteKit frontend that pings Supabase:
// pages/api/health.ts (Next.js)
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.SUPABASE_SERVICE_ROLE_KEY!
)
export default async function handler(req, res) {
try {
const { error } = await supabase.from('_health_check').select('1').limit(1)
if (error) throw error
res.status(200).json({ status: 'ok', supabase: 'connected' })
} catch (err) {
res.status(503).json({ status: 'error', message: err.message })
}
}
Then point Vigilmon at https://yourapp.vercel.app/api/health.
Step 5: Set Up a Status Page
Vigilmon includes a public status page generator. Share it with your users so they can check real-time status during incidents:
https://vigilmon.online/status/your-slug
This reduces support tickets dramatically — users check the page instead of emailing you.
Step 6: Configure Webhook Alerts
For team notifications, set up a webhook to Slack or Discord:
{
"url": "https://hooks.slack.com/services/YOUR/WEBHOOK/URL",
"events": ["down", "up"]
}
Vigilmon sends a POST request when your Supabase endpoint goes down and another when it recovers.
What Vigilmon Catches That Supabase Status Page Misses
Supabase has its own status page, but it reflects global infrastructure status — not your specific project. Your project can be down while global status shows green if:
- Your database hit connection limits
- Your project was paused (free tier projects pause after inactivity)
- Edge Functions hit timeout issues
- Row-Level Security policies caused query failures
Vigilmon monitors your endpoints, not Supabase's infrastructure.
Conclusion
Supabase makes building full-stack apps fast, but like any cloud dependency, it can fail. With Vigilmon:
- ✅ Multi-region consensus prevents false alerts
- ✅ 5-minute checks on the free tier
- ✅ Email + webhook alerts
- ✅ Public status page included
- ✅ No credit card for free tier
Set up monitoring in under 5 minutes at vigilmon.online.
Top comments (0)