google-cloud-functionsserverlesscost-managementgoogle-cloud-billing

Is there any way to break down my Google Cloud Functions spending into each one of my functions?


I want to know how much is each one of my cloud functions spending (break up the total costs on Google Cloud Functions that is shown in my Billing Console). I know I may be able to estimate it probably looking at the metrics and configuration of each function but it would be a hassle to do it one by one (I have a lot of functions).

I couldn't find any way of doing it using the Billing Console alone, it only shows the total cost.

If there was a tool/script it would also be appreciated.


Solution

  • You need to add labels on each of your functions (more about labels) and to sink the billing in BigQuery.

    Now, you will be able to find the cost of each Cloud Functions label in BigQuery. Create a dashboard to view the summary, with datastudio for example.