Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to track GCS network egress

We received an email from Google advising us that we will start to be billed for network egress from our Google Cloud Storage bucket (which is our App Engine default bucket). We send several thousand GiB per month, which costs a lot using their network egress prices.

We've been working to reduce our egress, but I can't find out how to track our usage. Other than the single email we received telling us about our usage in September, I can't find any reporting or metrics on our GCS usage beyond how much data is stored there. I've looked all throughout the Google Cloud console and Stackdriver console. The closest thing I've found is a page on storing access logs and storage data, which I suppose I could start collecting and querying if necessary.

Is there a way I can just see my network egress bandwidth/usage from Google Cloud Storage?

like image 632
mrb Avatar asked Nov 01 '16 18:11

mrb


People also ask

What is GCP egress?

Egress Refers to any access that involves an API client or resources within the service perimeter and resources outside a service perimeter. Examples: A Compute Engine client within a service perimeter calling a Compute Engine create operation where the image resource is outside the perimeter.

Does GCP charge for egress?

Egress traffic is charged based on whether the traffic uses an internal or external IP address, whether the traffic crosses zone or region boundaries within Google Cloud, whether the traffic leaves or stays inside Google Cloud, and the network tier of traffic that leaves Google's network.

What is network Internet egress?

Egress in the world of networking implies traffic that exits an entity or a network boundary, while Ingress is traffic that enters the boundary of a network. While in service provider types of the network this is pretty clear, in the case of datacenter or cloud it is slightly different.


1 Answers

From GCP Billing > Report you can determine total amount of data exported to the GCS bucket. On the filter section you need to set the Time range, Group by = SKU, services= Cloud storage. Please select daily to view the graph properly. Now you can easily find out the Network egress based on the SKU id. To know about Network egress cost based on SKU and Regions, please follow the docs here.

Cloud Storage pricing depends:

  1. The amount of data stored in your bucket and also depends on storage class and location
  2. If you read/move data from the buckets
  3. Total number of operations you performed on the buckets

For more information related to Network egress within google Cloud, please follow the article here.

like image 137
Mahboob Avatar answered Nov 16 '22 16:11

Mahboob