question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to check current BigQuery usage

See original GitHub issue

Whilst making https://github.com/ofek/pypinfo/pull/29 I got this:

    raise exceptions.from_http_response(response)
google.api_core.exceptions.Forbidden: 403 GET https://www.googleapis.com/bigquery/v2/projects/pypinfo-hugovk/queries/<snip>?maxResults=0&timeoutMs=10000: Quota exceeded: Your project exceeded quota for free query bytes scanned. For more information, see https://cloud.google.com/bigquery/troubleshooting-errors

I can’t find how much of my free monthly TB I’ve used up on the Google console.

After some digging in the console I found this:

image

https://console.cloud.google.com/home/activity?project=pypinfo-hugovk&authuser=1

Linking to this:

image

https://console.cloud.google.com/iam-admin/quotas?project=pypinfo-hugovk&authuser=1

Which isn’t very informative – all zeroes and dashes!

I get the error after doing several pypinfo --percent --pip pypinfo pyversion, but pypinfo --percent --pip -d 1 pypinfo is still fine.

Any idea what “QUERY-MBYTES-FOR-UNBILLED-PROJECTS-per-project” really means?

And where to check the monthly 1TB quota?

Thanks!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ofekcommented, Feb 4, 2018

I added these stats just now in 9.0.0 🙂

Though, I still can’t find a way to see one’s remaining free quota.

1reaction
hugovkcommented, Jan 18, 2018

Visit a page something like this, replace TODO_YOUR_PROJECT_HERE with your Pypinfo project name you chose in step 3 of the README:

https://console.cloud.google.com/home/activity?c=Configuration,Data_Access,Development,Monitoring,Platform,Recommendation&project=TODO_YOUR_PROJECT_HERE&authuser=1

On the filter on the right, make sure your project is selected in the dropdown, and enable all categories:

image

You should then see a bunch of logs like this:

image

The “Completed job” entries are the most interesting, showing the query pypinfo sent (you can see it locally with pypinfo --test), total billed bytes and total processed bytes:

image

From here, you can see that re-running a query that has been previously cached doesn’t cost any extra bytes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to BigQuery monitoring - Google Cloud
Use Cloud Monitoring to view BigQuery metrics and create charts and alerts. Each metric has a resource type, either bigquery_dataset , bigquery_project ,...
Read more >
Where do you get Google Bigquery usage info (mainly for ...
From the Google Cloud Console overview page for your project, click on the "details" section on the top-right, next to the charge estimate...
Read more >
Monitoring your BigQuery costs and reports usage with Data ...
In this article I will talk you through the complete process of setting up BigQuery cost monitoring dashboard. I used standard Google Ads ......
Read more >
Using BigQuery and Cloud Logging to Analyze BigQuery Usage
In this lab you view the BigQuery logs inside Cloud Logging, set up a sink to export them back into BigQuery, and then...
Read more >
BigQuery - DataHub
Field Type Default incremental_lineage boolean True sql_parser_use_external_process boolean False env string PROD
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found