How to turn on billing and still sleep at night
summary
Upgrade to Blaze and set a concrete budget (example: $5/month) while watching the console show $0.34 Firestore, $0.02 Functions; 68k reads, 22k writes, 2.5k invocations. Link that budget to a Pub/Sub topic and build a Cloud Function that processes billing Pub/Sub messages and records state in Firestore so alerts fire only on meaningful changes (Pub/Sub pings ~20 min). Use Cloud Monitoring with sum aligner on 30‑minute periods and concrete alerts (e.g., >10k reads for 3 hours or ~8k reads over 5 minutes); infinite‑loop functions trigger and are stopped.
AI-written summary · about
chapters (16)
- 0:00The basics and introducing the sample app
- 3:00Usage reports in the Firebase console
- 4:46Setting up budget alerts
- 8:40Adding additional emails to your budget alerts
- 9:20Creating a monitoring workspace
- 10:55Setting up a Cloud Pub/Sub topic for your spending
- 13:50Building smarter Pub/Sub functions with Cloud Firestore
- 16:09An intro to Cloud Monitoring
- 17:06Cloud Monitoring metrics
- 18:21Periods, aligners, and aggregators
- 22:07Cloud Monitoring dashboards and alerts
- 23:34Alert threshold times
- 25:37Common alerts for database traffic
- 27:15Notification channels for alerts
- 30:22Other options?
- 32:24What have we learned?
related talks
20mHow Do I Reduce My Cloud Bill?
41mUsing Cloud Firestore to Build Planetary Scale Apps
47mHow I Pwned My Cloud Costs
42mCapacity vs Efficiency: Building a Globally Scalable Cloud Database
45mCloud Computing: Cloud in a cost-effective way
30mAnd the CFO Wept: AWS Cost Control
35mAzure SpendOps – The Art of Effectively Managing Azure Costs
10mLightning Talk: Show Me the Money: Metrics Edition
