A utility to parse and aggregate Google Compute Engine CSV usage files. Ensure you have Google Compute Engine usage export enabled in your cloud console as shown in this screenshot:
git clone https://github.com/omerio/compute-engine-usage-parser.git
cd compute-engine-usage-parser
mkdir dir usage
# Download the usage files, needs cloud sdk. Note these files contain both daily and aggregate usage, you need
# to use one or the other, otherwise you will count things twice
gsutil -m cp gs://<usage-bucket>/*.csv usage/
./parse.sh usage