Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

how to get billing report of a cloud run service

I want to have the billing report for each service in cloud run.

Is it possible to do this?

If the answer is yes, Is it possible to receive this report through gcloud or API?

1 5 4,362
5 REPLIES 5

Hi @bahador1988,

In Google Cloud Run, you may obtain the billing report for each service.

Through the Google Cloud Console, you can see the billing data for your Google Cloud Run services. Follow these steps to access the billing information:

  1. Go to Console  to access the Google Cloud Console.
  2. Select "Billing" from the hamburger menu that appears in the page's upper left corner.
  3. Choose the project for which you wish to view billing details.
  4. Select "Reports" from the navigation menu on the left.
  5. You may check the billing data for your project, including the fees for Cloud Run services, on the "Reports" tab. The filters can also be used to view the billing details for a certain time frame, service, or item.

You can also programmatically access your billing information by using the Google Cloud Billing API. The Google Cloud Billing API documentation can be accessed at Work with Cloud Billing APIs  for more details and usage guidelines.

You can use the Google Cloud Console (Export Cloud Billing data to BigQuery)  or the Google Cloud Billing API to obtain the billing report for your Google Cloud Run services.

Thanks

@christianpaula How do you filter on a specific Cloud Run service though? I imagine you would use labels but I cannot find the label's key that I added to my Cloud Run service from the Cloud Run Services Page (Info Panel)?

Hi, consider using Rabbit cost management and optimization tool where Cloud Run is supported and you can see service-based cost and also you can have optimization recommendations.  https://followrabbit.ai/

You can try it out for 1 month for free via Google Cloud Marketplace: https://console.cloud.google.com/marketplace/product/rbt-gcp-marketplace/rabbit

 

Hi @ZoltanGuth , GCP doesn't provide any way to group by each service running on cloud run?

Hi @bahador1988, recently Google Cloud Platform updated the Cloud Billing/Reports console by adding a button called "GENERATE QUERY". I believe this can help you as much as it helped me!

Top Labels in this Space
Top Solution Authors