Skip to content

Monitoring guide

How to monitor Firebase

Firebase handles hosting, auth, databases and functions for you. What it cannot watch is how your code uses them, and what that costs.

3 min read9 sectionsUpdated

On this page

Why Firebase needs its own monitoring

Firebase failures are usually quiet: a security rule that starts denying a query, a Cloud Function that times out on a slow API, a listener that reads far more documents than intended and multiplies the bill. Users see a spinner, not an error page.

Firebase includes Crashlytics for mobile crashes, Performance Monitoring for app and web traces, and Cloud Functions logs and metrics in Google Cloud. Uptime of your hosted site from outside, and alerts tied to user-facing symptoms, are worth adding.

What typically goes wrong

  • Security rules rejecting queries after a rules deploy.
  • Cloud Functions timing out or hitting cold starts on rarely used endpoints.
  • Firestore reads exploding because of unbounded listeners or missing pagination.
  • Hosting serving an old build after a failed deploy.
  • Auth sign-in failing for one provider after a config change.

What to monitor

SignalHow to measure itAlert when
Uptime of the main pages and APIHTTP check every minute from several regions, with a keyword assertionTwo regions fail in a row
Cloud Functions errors and durationCloud Monitoring metrics or exported tracesError rate over 1% or p95 near the timeout
Firestore reads and writesUsage metrics in Cloud MonitoringDaily reads double without traffic growth
App crashesCrashlyticsCrash-free users drop below 99%
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 Hosting from outside. Monitor the main pages and a callable or HTTP function.
  2. Alert on functions. Set alerts on function errors and execution time in Cloud Monitoring or your backend.
  3. Watch usage. Set budget alerts and monitor Firestore read counts daily.
  4. Test rules. Run the rules emulator tests in CI before deploying rules.
  5. Add real user data. Use Performance Monitoring or a RUM script for vitals on the web app.

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.

Firebase specifics

Budget alerts are monitoring on Firebase: a runaway listener is an incident even if nothing errors. Cloud Functions are Google Cloud functions underneath, so Google Cloud monitoring applies to them.

Frequently asked questions

Does Firebase monitor my app?

It includes Crashlytics, Performance Monitoring and Cloud Monitoring metrics; outside uptime checks and symptom-based alerts are still worth adding.

How do I catch Firestore cost spikes?

Set budget alerts and watch daily read counts; most spikes come from listeners without limits.

How do I monitor Cloud Functions?

Alert on errors and execution time, and trace the calls they make to other services.

Check it now, free

  • 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.
  • 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.
  • How to monitor Vercel: How to monitor apps on Vercel: what Vercel shows you, what it does not, outside uptime checks, serverless and edge function errors, traces and alerts.
  • Monitoring a cloud migration: Monitor a cloud migration safely: baseline performance before you move, compare old and new side by side, watch the cutover.
  • How to monitor Render: How to monitor apps on Render: web service uptime and health checks, background workers, cron jobs with heartbeats, managed Postgres and Redis, 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.

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.