Skip to content

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.

What to monitor

SignalHow to measure itAlert when
REST and auth API availabilityHTTP checks on a lightweight endpoint with the anon keyTwo regions fail in a row
Database connections and CPUMetrics endpoint scraped into your backendConnections above 80% of the limit
Slow queriesQuery performance reports and `pg_stat_statements`A query’s mean time doubles
Edge function errorsLogs or traces from the functionsError rate over 1%
Core Web Vitals (LCP, INP, CLS)Real user monitoring script on every pagep75 LCP over 2.5 s or INP over 200 ms for a day

Set it up, step by step

  1. Check the APIs from outside. Monitor a simple read through the REST API and the auth health endpoint.
  2. Scrape database metrics. Collect the project’s metrics endpoint with an OpenTelemetry Collector or Prometheus.
  3. Find slow queries. Review pg_stat_statements weekly; see finding slow database queries.
  4. Use the pooler. Connect serverless code through the connection pooler, and alert on connection count.
  5. 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.

Frequently asked questions

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

  • 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.