Hi Peter,

$75 per week sounds a lot for a non-used tutorial app, that normally should 
stay below the free tier. Maybe there is more than one app running since 
you played with the tutorials. One other explanation would be that you have 
chosen an expensive instance class (e.g. F4, F4G1), or that there are too 
many idle instances running, or forgotten cron-jobs, etc. Best approach is 
to study all the expenses for the billing account where the costs were 
charged and identify the big hitters.

In order to see your detailed expenses in Google Cloud Platform:

   1. Go to Google Cloud Console > Billing 
   <https://console.cloud.google.com/billing/>
   2. Click on each billing account (probably you only have one listed for 
   all your projects)
   3. On the left navigation under Billing, click on *Transactions*
   4. You will see a list of transactions. Make sure that above the table, 
   you have selected:
      1. Detailed transaction view
      2. All transactions
      3. All time
   5. Each costs item will show you which project has consumed a certain 
   service or resource, the quantity (in hours, counts etc.), and the cost in 
   USD
   6. Some lines will show payments (I assume, the free 300$ credit should 
   appear as the last item at the bottom of the page)

More information here: View Your Cost and Payment History 
<https://cloud.google.com/billing/docs/how-to/view-history>.

Most tutorials in the documentation of Google Cloud Platform also include 
how to delete the training assets after the tutorial is completed, so no 
more costs will occur.

However, if you do not want to delete a Google App Engine app, you have two 
options to save costs (at least for not running the app instances):

   - Disable the app until you want to work again with the app. The app 
   will stop serving requests, until re-enabled. Data and state of the app 
   will be kept, but may result in costs (e.g. size of datastore).
   1. In Cloud Console for the project that has the GAE app, go to App 
      Engine > Settings 
      <https://console.cloud.google.com/appengine/settings>
      2. Click on *Disable application* button
      3. Enter the appp ID and confirm the action
   - Apply a daily billing limit for the app. Once the daily spending limit 
   is reached, the app will stop working, any further requests will be 
   responded with server errors.
      1. In Cloud Console for the project that has the GAE app, go to App 
      Engine > Settings 
      <https://console.cloud.google.com/appengine/settings>
      2. Click on the Edit button above
      3. Enter a USD value (e.g. 1) into the input field *Daily spending*
      4. Click on Save
   
Both options relate to GAE costs (typically instance hours, some traffic, 
datastore ops), but other costs may incur, let's say, you have created the 
app with a Cloud SQL instance, significant Datastore or Storage size. Just 
check the Transactions page to see which costs were actually charged. The 
documentation provide lots of information on billing, as well as pricing, 
quotas, and free tiers for each product.

Optionally, you can also setup budgets and alerts 
<https://cloud.google.com/billing/docs/how-to/budgets>, so you will receive 
an email at certain budget milestones (reset each month). I strongly 
recommend to setup at least one alert for each billing account, so you 
won't be surprised at the end of a billing period in case you forgot to 
delete or disable something.

Ani

On Saturday, 4 November 2017 17:09:33 UTC+1, Peter Camilleri wrote:
>
> I started playing with GAE a couple weeks ago. I've only played around 
> with the tutorials so far. I successfully deployed the bookshelf and visit 
> apps.
>
> I checked my billing today and found that I have burnt through about 1/5th 
> of my free 300$ credit. This seems pretty extreme.
>
> The billing page doesnt really tell me what I've been billed for. My 
> biggest expense is
>
> "Credit 
> FreeTrial:2017-10-22T00:00:00.000-07:002af76aae-dd42-421e-XXXX-XXXXXXXXX" 
> which is 50$
>
> Should I be deleting my app engine instance when I'm not using it? 
>
> Even so, these prices seem pretty extreme, it looks like App engine will 
> cost me around $75 a week to host my project. The GAE calculator gives me a 
> significantly smaller estimate.
>
> Where am I losing money?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7551e3a7-42a2-403d-bd3b-b9b390b53159%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to