Monitoring guide
How to monitor Supabase
Supabase gives you Postgres, auth, storage, realtime and edge functions in one project. Your app depends on all of them, so watch each from where your users stand.
4 min read9 sectionsUpdated
On this page
Why Supabase needs its own monitoring
With Supabase, most of your backend is a managed Postgres database plus APIs in front of it. The usual failure is not the platform going down but your usage hitting its limits: connection caps, slow queries without indexes, row level security policies that scan whole tables, or a compute size too small for traffic.
Supabase has a dashboard with usage, logs and query performance reports, and exposes a Prometheus-compatible metrics endpoint for the database. Alerting on those, and linking them to what users experience, is up to you.
What typically goes wrong
- Running out of database connections, especially from serverless functions without a pooler.
- Slow queries after data grows, often missing indexes or heavy RLS policies.
- Auth emails not arriving because of SMTP limits or settings.
- Edge functions failing on a changed secret or a downstream API.
- A paused or over-quota project on smaller plans.
| Signal | How to measure it | Alert when |
|---|---|---|
| REST and auth API availability | HTTP checks on a lightweight endpoint with the anon key | Two regions fail in a row |
| Database connections and CPU | Metrics endpoint scraped into your backend | Connections above 80% of the limit |
| Slow queries | Query performance reports and `pg_stat_statements` | A query’s mean time doubles |
| Edge function errors | Logs or traces from the functions | Error rate over 1% |
| Core Web Vitals (LCP, INP, CLS) | Real user monitoring script on every page | p75 LCP over 2.5 s or INP over 200 ms for a day |
Set it up, step by step
- Check the APIs from outside. Monitor a simple read through the REST API and the auth health endpoint.
- Scrape database metrics. Collect the project’s metrics endpoint with an OpenTelemetry Collector or Prometheus.
- Find slow queries. Review
pg_stat_statementsweekly; see finding slow database queries. - Use the pooler. Connect serverless code through the connection pooler, and alert on connection count.
- Trace your app. Instrument the app that calls Supabase so each request shows its database time.
Route alerts to the people who can act on them (Slack for warnings, a phone call for outages), and put the checks behind a status page so users see what you see.
Supabase specifics
Remember that row level security runs for every query: a policy with a subquery can turn a fast lookup into a full scan. Test policies with EXPLAIN on realistic data. For Postgres itself, the PostgreSQL monitoring guide lists the metrics that matter.
Does Supabase have monitoring built in?
It has dashboards, logs and query reports, and a metrics endpoint; alerting and correlation with your app need your own setup.
Why do I get too many connections?
Serverless functions open many short connections; use the connection pooler and watch the count.
How do I find slow Supabase queries?
Use the query performance report or pg_stat_statements, then add indexes or simplify RLS policies.
Check it now, free
- Is Supabase down? Live status: checked every few minutes, with outage history.
- Response time checker: Measure TTFB with DNS, connect, TLS and server time.
Related reading
- GraphQL API monitoring: Monitor GraphQL APIs properly: errors hidden inside 200 responses, latency per operation, resolver tracing, query depth, and uptime checks that assert on data.
- How to monitor Netlify: How to monitor sites on Netlify: outside uptime checks, Netlify Functions errors, build failures, form and redirect problems, Core Web Vitals and alerts.
- WordPress monitoring: uptime, speed and errors: Monitor a WordPress site: uptime with content checks, login and admin, Core Web Vitals, PHP errors, plugin updates, SSL expiry and backups.
- How to monitor a Next.js app: How to monitor a Next.js app in production: uptime checks, Core Web Vitals, server and edge errors, OpenTelemetry traces for SSR and API routes, and alerts.
- IIS monitoring and IIS logs: Monitor Microsoft IIS: performance counters, request queues, application pool health and recycling, W3C log fields such as time-taken.
- OpenTelemetry for Flask: Instrument a Flask app with OpenTelemetry, in code or with zero code: trace routes, SQLAlchemy and outgoing calls, and export to VitalRix.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.