Reconnecting
Restoring connection…
Reconnecting
Restoring connection…
Google Cloud billing and cost analytics
v0.1.0Read-only Google Cloud spend analytics — cost by service, project, and SKU, a daily trend, and export freshness — read from the Cloud Billing export in BigQuery, alongside billing account, linked project, and budget reads from the Cloud Billing API. Google Cloud publishes no cost-report API, so the cost actions read the billing export rather than a reporting endpoint.
gcloud
curl
jq
Install
emisar pack install
fetches this pack, re-validates it, and verifies its content hash against the
--hash
below — the exact bytes this page was rendered against, so a tampered copy is
rejected — before copying it into the runner's packs dir. The command reloads a
running daemon itself; no manual restart.
sudo emisar pack install gcp-billing --hash sha256:ded4905d6f907293a62581e95123d5fb6159caf67367d6186edb0fc21827af7b
Actions 8 total
View on GitHub-
gcp.billing_accounts exec low
gcloud billing accounts list
List Cloud Billing accounts the runner's credentials can see, with currency, open state, and parent organization.
View source on GitHub -
gcp.billing_budgets exec low
gcloud billing budgets list
List budgets on one Cloud Billing account, with their amounts, threshold rules, and the projects or services each one filters.
View source on GitHub -
gcp.billing_projects exec low
gcloud billing projects list
List projects billed to one Cloud Billing account, with each project's billing-enabled state.
View source on GitHub -
gcp.cost_by_project script low
Show Google Cloud cost by project
Show gross cost, credits, and net cost per project over a recent window, read from the Cloud Billing export in BigQuery and ordered by the largest net spend. Charges that carry no project, such as support, group as (unattributed).
View source on GitHub -
gcp.cost_by_service script low
Show Google Cloud cost by service
Show gross cost, credits, and net cost per Google Cloud service over a recent window, read from the Cloud Billing export in BigQuery and ordered by the largest net spend.
View source on GitHub -
gcp.cost_by_sku script low
Show Google Cloud cost by SKU
Show the costliest SKUs over a recent window with their billed usage quantity, read from the Cloud Billing export in BigQuery. This is the breakdown that names what a spend increase actually bought.
View source on GitHub -
gcp.cost_daily_trend script low
Show the Google Cloud daily cost trend
Show net cost per day over a recent window, newest first, read from the Cloud Billing export in BigQuery. This is the series that dates a spend increase before the by-SKU breakdown names it.
View source on GitHub -
gcp.cost_export_freshness script low
Check Cloud Billing export freshness
Check how current the Cloud Billing export in BigQuery is — its newest export time, that lag in hours, the usage period it covers, and the row count in the window. Run this before trusting a cost number that looks too low.
View source on GitHub