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.
| Signal | How to measure it | Alert when |
|---|---|---|
| Uptime of the main pages and API | HTTP check every minute from several regions, with a keyword assertion | Two regions fail in a row |
| Cloud Functions errors and duration | Cloud Monitoring metrics or exported traces | Error rate over 1% or p95 near the timeout |
| Firestore reads and writes | Usage metrics in Cloud Monitoring | Daily reads double without traffic growth |
| App crashes | Crashlytics | Crash-free users drop below 99% |
| 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 Hosting from outside. Monitor the main pages and a callable or HTTP function.
- Alert on functions. Set alerts on function errors and execution time in Cloud Monitoring or your backend.
- Watch usage. Set budget alerts and monitor Firestore read counts daily.
- Test rules. Run the rules emulator tests in CI before deploying rules.
- 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.
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
- Is Firebase down? Live status: checked every few minutes, with outage history.
- Response time checker: Measure TTFB with DNS, connect, TLS and server time.
- Downtime cost calculator: What an outage costs per minute, hour and year.
Related reading
- 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.