{"id":13588755,"url":"https://github.com/naseemkullah/gcp-accountant","last_synced_at":"2025-04-30T17:11:09.558Z","repository":{"id":37849809,"uuid":"196421238","full_name":"naseemkullah/gcp-accountant","owner":"naseemkullah","description":"A tool to identify high cost resources in GCP at a granular level","archived":false,"fork":false,"pushed_at":"2024-06-19T22:41:00.000Z","size":513,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T07:46:56.628Z","etag":null,"topics":["bigquery","cost","cost-engineering","cost-resources","gcp","gcp-accountant"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naseemkullah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-11T15:32:10.000Z","updated_at":"2025-01-07T17:27:44.000Z","dependencies_parsed_at":"2024-06-20T11:07:24.796Z","dependency_job_id":null,"html_url":"https://github.com/naseemkullah/gcp-accountant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseemkullah%2Fgcp-accountant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseemkullah%2Fgcp-accountant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseemkullah%2Fgcp-accountant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseemkullah%2Fgcp-accountant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naseemkullah","download_url":"https://codeload.github.com/naseemkullah/gcp-accountant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748950,"owners_count":21637418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","cost","cost-engineering","cost-resources","gcp","gcp-accountant"],"created_at":"2024-08-01T15:06:54.325Z","updated_at":"2025-04-30T17:11:09.519Z","avatar_url":"https://github.com/naseemkullah.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# gcp-accountant\n\n           /:\"\"|\n          |:`66|_\n          C`    _)\n           \\ ._|\n            ) /\n           /`\\\\\n          || |Y|\n          || |#|\n          || |#|\n          || |#|\n          :| |=:\n          ||_|,|\n          \\)))||\n       |~~~`-`~~~|\n       |         |\n       |_________|\n       |_________|\n           | ||\n           |_||__\n      jgs  (____))\n\nA tool to identify high-cost resources in GCP at a granular level\n\n## Prerequisites\n\n* You must have [Billing export for BigQuery](https://cloud.google.com/billing/docs/how-to/export-data-bigquery) enabled\n\n* You must be authorized to create BigQuery jobs\n\n* It is highly recommended that resources be labeled at a granular level. The granularity of the labels will be reflected in the results.\n\n## Installation\n\n    npm install -g\n\n## Usage\n\nExecute `gcp-accountant` and answer the questions:\n\n    $ gcp-accountant\n    ? What is the billing dataset called? (Use arrow keys)\n    ❯ billing\n      not-billing\n      not-billing-either\n    [..]\n\n## How it works\n\nFirst, `gcp-accountant` makes use of [inquirer](https://www.npmjs.com/package/inquirer) and the [Google BigQuery Client Library for Node.js](https://www.npmjs.com/package/@google-cloud/bigquery) to gather some info from the user:\n\n1. The name of the billing dataset\n2. The name of the billing table\n3. The invoice month to perform cost analysis on in `YYYYMM` format\n\nThen `gcp-accountant` runs queries on the data by means of the aforementioned BigQuery client and the results are then displayed in the terminal by means of [cliui](https://www.npmjs.com/package/cliui) and [chalk](https://www.npmjs.com/package/chalk).\n\n## THIS IS NOT AN OFFICIAL GOOGLE PRODUCT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaseemkullah%2Fgcp-accountant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaseemkullah%2Fgcp-accountant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaseemkullah%2Fgcp-accountant/lists"}