Search code examples
javaapigoogle-app-enginemonitoringbilling

Google App Engine Billing Monitor


I would like to build a simple app monitor for my GAE app that sends me emails when I've hit certain markers (80%, 85%, 90%, 95%, 98% and 100%) of my billing ceiling. Thus, if my billing ceiling for a given day was, say, $50, I would get emails when I reached $40, $42.5, $45, $47.5, $49 and $50 respectively. The purpose of this monitor is (obviously) to alert me that I may need to increase my billing ceiling or prepare for some kind of failover event before my app gets shut down.

Before I go heading down the track of writing my own monitor, I was wondering if GAE comes with this kind of functionality right out of the box. Nothing in their documentation seems too suggest that they do.

If they don't provide such a service, does GAE expose some kind of secured API that I could hit (e.g., public double getPercentBillingCeiling(), etc.)? If not, do any GAE gurus have any idea what I could use to automate the collection of this kind of information? Thanks in advance.


Solution

  • There is not currently a programmatic service that allows you access to your quotas. However, this sounds like a perfectly reasonable feature request (or set of feature requests). You may wish to star any existing features in the issue tracker (this one might fit the bill), or file a new one if your specific requirements aren't met.