Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/containersolutions/gcp-billing-csv

DB to store billing csv data from GCP in Postgres so it can be queried using SQL
https://github.com/containersolutions/gcp-billing-csv

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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 ;
GRANT
```

2) Download report from Billing

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

b) Download and copy/move to `raw_billing_csvs/` folder

4) `./run.sh`

5) `psql cost < queries.sql`

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