Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/containersolutions/gcp-billing-csv
- Owner: ContainerSolutions
- License: mit
- Created: 2024-02-23T10:36:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T14:15:04.000Z (12 months ago)
- Last Synced: 2024-12-23T02:08:36.927Z (2 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.