Skip to content

DB to store billing csv data from GCP in Postgres so it can be queried using SQL

License

Notifications You must be signed in to change notification settings

ContainerSolutions/gcp-billing-csv

Repository files navigation

  1. Create a postgres database called 'cost' and give yourself access, eg
$ su - postgres
postgres@bacon:~$ psql
postgres=# create database cost;
CREATE DATABASE
postgres=# GRANT ALL PRIVILEGES ON DATABASE cost to <USERNAME>;
GRANT
  1. Download report from Billing

    a) => Cost Table => Table configuration (Select No Grouping)

    b) Download and copy/move to raw_billing_csvs/ folder

  2. ./run.sh

  3. psql cost < queries.sql

The queries can be adjusted for your particular needs in analysis.

About

DB to store billing csv data from GCP in Postgres so it can be queried using SQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy