Ad
Setup Alerts For Firebase Hosting Bandwidth Usage
I have used Firebase Hosting to host a bunch of JS files. One JS file corresponds to one client So assume here is the structure
<domain.com>/1.js --> client1
<domain.com>/2.js --> client2
and so on.
I am on Blaze Plan (Pay as you go). I just want to set up alerts if the firebase hosting usage goes beyond a certain point. Here's my hosting usage looks like -
Questions
- Is it possible to set up an email alert like whenever usage reaches 20GBs, 30Gbs, etc?
- Is it possible to get the traffic distribution across resources like
<domain.com>/1.js --> X <domain.com>/2.js --> Y
Ad
Answer
I reached out to Firebase Support for this. They helped with an approach which kinda solved this problem. You can actually configure Billing Alerts per Service in Google Cloud Console.
Follow the steps mentioned in https://cloud.google.com/billing/docs/how-to/budgets and setup alerts.
For getting alerts at 20GB Hosting usage, you can simply setup billing alert at
20GB*0.15$/GB = 3$
Moreover, you can setup multiple alerts so that suffices the use case.
Ad
source: stackoverflow.com
Related Questions
- → How can I query Firebase for an equalTo boolean parameter?
- → How can I access nested data in Firebase with React?
- → Firebase simple blog (confused with security rules)
- → Removing item in Firebase with React, re-render returns item undefined
- → AngularJS Unknown Provider Error (Firebase & AngularFire)
- → How do you pass top level component state down to Routes using react-router?
- → "this" is null in firebase query function in reactjs
- → Angular Module Failed to Load
- → Multiple dex files define Lcom/google/android/gms/internal/zzrx;
- → Joining Firebase tables in React
- → How can I make add firepad to my reactjs project?
- → How to use Cloud Functions for Firebase to prerender pages for SEO?
- → React.js component has null state?
Ad