Generated banner for Bigquery Observability
Generated logo for Bigquery Observability

Bigquery Observability

GoogleOfficialPublished by Google

  • Skill
  • Tool integration
  • Data and AI
  • Apache-2.0
  • No issues found

From the author

Provides data-retrieval best practices, tool selection guidance, and performant SQL query syntax for BigQuery telemetry across INFORMATION_SCHEMA, Cloud Monitoring, and the REST API. Use when the telemetry to fetch is already known, selecting telemetry tools, writing performant INFORMATION_SCHEMA queries, retrieving telemetry for diagnosing single-job performance bottlenecks, investigating slot contention, job concurrency and queue latency, analyzing reservation capacity, utilization and autoscaling saturation, or auditing capacity-based and on-demand compute and storage resource billable usage. Don't use for root-cause diagnosis or symptom troubleshooting when the cause is unknown (use bigquery-troubleshooting first), or for writing or optimizing business logic SQL (use bigquery-optimization).
— the description by Google

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

BigQuery Observability offers a structured approach to monitoring and analyzing BigQuery performance and resource usage. It guides users in selecting the right telemetry tools—ranging from INFORMATION_SCHEMA for historical analysis to the REST API for real-time job lookups—and provides optimized SQL templates for auditing compute, storage, and capacity. The skill emphasizes efficient data retrieval, least-privilege access, and performance guardrails to ensure accurate telemetry without unnecessary overhead.

What it does

  • Provides SQL query templates for INFORMATION_SCHEMA views.
  • Offers guidance on choosing between INFORMATION_SCHEMA, Cloud Monitoring, and REST APIs.
  • Includes best practices for performant telemetry retrieval and cost management.
  • Details schema dictionaries for compute, storage, and capacity metrics.
  • Defines workflows for diagnosing job bottlenecks and resource contention.
  • Enforces usage attribution for all Google Cloud CLI and API interactions.

When to use it

  • When you need to audit billable compute or storage resource usage.
  • When investigating job performance bottlenecks or slot contention.
  • When analyzing reservation capacity, utilization, or autoscaling saturation.
  • When you need to perform historical analysis or cohort comparisons of jobs.
  • When selecting the appropriate telemetry tool for real-time vs. historical monitoring.

Advantages

  • Reduces query overhead by providing optimized, partition-filtered SQL patterns.
  • Ensures least-privilege access by recommending specific view variants.
  • Standardizes diagnostic workflows across single-job and system-level issues.
  • Provides clear guidance on avoiding common pitfalls like full metadata scans.

Usage examples

“How do I check for slot contention in my BigQuery project?”
The agent provides a query template using the JOBS_TIMELINE view, filtered by the relevant time window, to identify periods of high slot usage and queue latency.
“I need to audit my on-demand compute spend for the last 30 days.”
The agent provides a structured SQL query using INFORMATION_SCHEMA.JOBS, including logic to deduplicate script wrappers and calculate billable bytes.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/google/bigquery-observability/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip bigquery-observability.zip -d .agents/skills

Documentation by Google

BigQuery Observability

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:bigquery-observability)" and append agent-skills/1.0 (skill:bigquery-observability) to User-Agent headers.

Tool Selection

<!-- mdformat off -->

ToolPrimary Use CasesStrengths & CapabilitiesWhen to Avoid / Limitations
INFORMATION_SCHEMA (I_S)Historical analysis, cohort comparison (normalized_literals), discovery of fast/slow windows, reservation/project timelines, multi-job aggregates, cost/billing tracing.Flexible SQL querying across JOBS, JOBS_TIMELINE, and RESERVATIONS; supports custom time windows and grouping.Avoid for high-frequency real-time polling or single-job point-lookups (can consume slots and take seconds to execute).
REST API (jobs.api / reservation.api)Single-job point-lookup, real-time stage bottleneck diagnosis, automated pipeline status checks, reservation/capacity commitment configuration inspection (reservations.get, reservations.list).Zero-SQL overhead, fast REST/CLI point-lookups (bq show -j, bq show --reservation), instant access to performanceInsights, queryPlan, and structural metadata.Avoid for aggregate analysis across thousands of jobs, cross-project historical comparison, or system timeline aggregations.
Cloud Monitoring (Metrics Explorer / Charts)Real-time alerting, fleet-wide dashboards, continuous slot utilization tracking, high-level SLA/SLO monitoring.Out-of-the-box charts for slot utilization, query throughput, PENDING queue depth, and execution latency; low-latency alerting without running queries.Avoid for SQL-level debugging, individual query text inspection, or stage-level execution detail.

<!-- mdformat on -->

Prerequisites & Environment Setup

Before retrieving telemetry or running observability queries, ensure the Google Cloud environment and project are configured:

  1. Google Cloud SDK: Ensure the Google Cloud SDK is installed and configured.

  2. Project Selection: Set the active Google Cloud project:

    gcloud config set project {project_id}
  3. API Enablement: Ensure the BigQuery and Cloud Monitoring APIs are enabled:

    gcloud services enable bigquery.googleapis.com monitoring.googleapis.com
  4. Authentication: Authenticate the environment:

    • CLI queries and bq commands: gcloud auth login

    • SDKs and automated client tools: gcloud auth application-default login

    • Service accounts: Set GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"

  5. Billing & IAM Roles:

    • Verify an active Google Cloud Billing account is attached to {project_id}.

    • Ensure appropriate IAM roles:

      • roles/bigquery.jobUser: Running telemetry queries.

      • roles/bigquery.resourceViewer or roles/bigquery.admin: Organization-level jobs and reservation telemetry.

      • roles/monitoring.viewer: Cloud Monitoring metrics.

  6. Companion Skills Installation: This skill is part of a 3-pillar operations suite (bigquery-observability, bigquery-optimization, bigquery-troubleshooting). If any companion skill is not yet installed in your environment, install the full suite:

    npx skills add google/skills --skill bigquery-observability --skill bigquery-optimization --skill bigquery-troubleshooting

Workflow

  1. Single-Job Point-Lookup (Zero-SQL Overhead): For single-job slowness or inspection, always prioritize the REST API or CLI (bq show -j) first. It provides zero-SQL overhead and fast point-lookups for internal stage bottlenecks (performanceInsights, queryPlan, shuffle spill).

    bq show --location={location} -j {project_id}:{job_id}
  2. Diagnostic Transition Logic: If no job-level issues are found (e.g. no clear internal bottlenecks), the investigation should transition to system-level INFORMATION_SCHEMA queries (such as JOBS_TIMELINE or RESERVATIONS_TIMELINE) to check for broader issues like slot contention, queueing delay, or noisy neighbors.

Best Practices for Writing INFORMATION_SCHEMA Queries

Every query against a BigQuery INFORMATION_SCHEMA view must be qualified with either a region qualifier or a dataset qualifier, optionally prefixed by a project qualifier.

Qualification Syntax & Scope Matching
  1. Region-Qualified Syntax:

    `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.{view}

    Example: `my-project`.`region-us`.INFORMATION_SCHEMA.JOBS

    Applies to: Regional telemetry views (JOBS*, JOBS_TIMELINE*, RESERVATIONS*, CAPACITY_COMMITMENTS*, TABLE_STORAGE*, STREAMING_TIMELINE*). The client query execution location MUST match the region-{region} qualifier (or BigQuery throws: Not found: Table {project_id}:region-{region}.INFORMATION_SCHEMA.{view} was not found in location {location}).

  2. Dataset-Qualified Syntax:

    `{project_id}`.`{dataset_id}`.INFORMATION_SCHEMA.{view}

    Example: `my-project`.`analytics`.INFORMATION_SCHEMA.TABLES

    Applies to: Dataset-scoped views (PARTITIONS, SEARCH_INDEXES*, ROW_ACCESS_POLICIES). Never use region- with dataset views.

  3. Dual-Scoped Views: Views like TABLES, COLUMNS, COLUMN_FIELD_PATHS, VIEWS, ROUTINES, and VECTOR_INDEXES can be qualified with either {dataset_id} or region-{region} depending on whether dataset or region-wide analysis is required.

  4. Project Qualifier ({project_id}): Optional. If omitted, queries default to the project in which the query is executing. Specifying a project qualifier on organization-level views (e.g. JOBS_BY_ORGANIZATION) has no impact on results.

Principle of Least Privilege & Scope Selection

When constructing INFORMATION_SCHEMA queries, always select the scope and view variant with the least IAM permission requirement that satisfies the analytical need:

  1. User-Level over Project-Level (_BY_USER): When diagnosing queries or sessions executed by the current user, use _BY_USER (e.g. JOBS_BY_USER, SESSIONS_BY_USER). This requires only bigquery.jobs.list (granted via roles/bigquery.user or roles/bigquery.jobUser), avoiding the need for bigquery.jobs.listAll or roles/bigquery.admin.

  2. Dataset-Level over Region/Project-Level: When querying table metadata, columns, or views for a specific dataset, qualify with {dataset_id} rather than region-{region} when project-level metadata access is restricted. Dataset-scoped queries require permissions only on that target dataset.

  3. Project-Level over Org/Folder-Level (_BY_PROJECT): Always start with project-scoped views before escalating to _BY_FOLDER or _BY_ORGANIZATION. Folder and organization queries require broad folder/org IAM permissions (bigquery.jobs.listAll or bigquery.tables.list at the Org/Folder node).

  4. Metadata Roles over Data Roles: For table and storage introspection, prefer roles/bigquery.metadataViewer (which provides bigquery.tables.get and bigquery.tables.list) over roles/bigquery.dataViewer or roles/bigquery.dataOwner when data read access (bigquery.tables.getData) is not needed. (Note: INFORMATION_SCHEMA.PARTITIONS uniquely requires bigquery.tables.getData).

Execution Guardrails & Query Invariants
  • Mandatory Partition & Time Filtering: Always filter on creation_time (e.g., creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 3 DAY)) or usage_date to avoid full metadata table scans.

  • Script Wrapper Exclusion: Add AND (statement_type != 'SCRIPT' OR statement_type IS NULL) when aggregating compute spend to avoid double-counting parent scripts and child jobs.

  • Column Pruning: Never use SELECT * against INFORMATION_SCHEMA; only project required columns.

  • Dry Run & Cost Estimation: Use a dry run (bq query --dry_run --use_legacy_sql=false "{query}" or API dryRun=true) before executing complex queries, multi-view joins, or large scans to validate syntax and estimate totalBytesProcessed at zero cost.

  • Empty Regional Scope (0 Rows): If the execution location matches the qualifier, but the project has no datasets or jobs in that region, the query succeeds and returns 0 rows. Never assume 0 rows means 0 usage—always verify the target dataset locations.

  • Non-Hierarchical Region Scope: Region qualifiers are not hierarchical. Multi-regions do not encompass single regions (e.g. region-us returns only multi-region US metadata and does not include single regions like region-us-central1).

  • No Multi-Region Aggregation in SQL: Region qualifiers cannot be joined cross-region in a single query (e.g. region-us cannot join region-eu).

  • Uncached Execution & Minimum Scan Size: INFORMATION_SCHEMA query results are never cached. On-demand queries incur a minimum of 10 MB of data processing charges per execution.

Domain References & SQL Queries

Telemetry Query Guides
  • On-Demand Compute: Billed Bytes (references/compute_ondemand_billable.md): Authoritative Golden CTE (bytes_billed_cte), timezone-aligned billing date extraction (PST8PDT), BQML CREATE_MODEL 50x multiplier rules, script wrapper deduplication, and row-level security (RLS) masking checks.

  • Capacity Compute: Billable Slots & Commitments (references/compute_capacity_billable.md): Query templates for auditing billable capacity hours across 1-Year/3-Year commitments, uncovered baseline PAYG slots, and dynamic autoscaling hours.

  • Storage Footprints & Usage (Bytes Stored) (references/storage_footprints.md): Storage snapshot queries, compression ratio calculations, Time Travel / Fail-Safe churn, daily average GiB time-integrals, billing model evaluation, and search index coverage.

Performance & Troubleshooting Guides
  • Job Performance Queries (references/job_performance_queries.md): Queries for evaluating individual and aggregate job performance, stage bottleneck flags, comparable jobs via normalized literals (query_info.query_hashes.normalized_literals), BI Engine acceleration, metadata cache (cmeta) acceleration, search index usage, materialized view rewrite usage, and execution variance outliers.

  • Resource Contention Queries (references/resource_contention_queries.md): Queries for diagnosing slot contention, queue latency, per-minute concurrency/queue timelines, and 1-second reservation slot saturation.

  • Capacity & Configuration Queries (references/capacity_and_configuration_queries.md): Queries for evaluating second-by-second baseline/max capacity ceilings, autoscaling saturation timelines, and auditing configuration changes (RESERVATION_CHANGES_BY_PROJECT, ASSIGNMENT_CHANGES_BY_PROJECT).

Schema Dictionaries (Column Definitions & Units)
  • Compute & Capacity Schema Dictionary (references/schema_compute.md): Complete column dictionary, physical units, and least-privilege IAM roles for all compute, job, session, reservation, capacity commitment, and assignment views (JOBS*, JOBS_TIMELINE*, SESSIONS_BY_USER, SESSIONS_BY_PROJECT, RESERVATIONS*, RESERVATION_CHANGES*, RESERVATIONS_TIMELINE*, CAPACITY_COMMITMENTS*, CAPACITY_COMMITMENT_CHANGES_BY_PROJECT, ASSIGNMENTS*, ASSIGNMENT_CHANGES_BY_PROJECT).

  • Storage & Data Catalog Schema Dictionary (references/schema_storage.md): Complete column dictionary, physical units, and least-privilege IAM roles for all table storage, partition, column, snapshot, dataset, constraint, and replication views (TABLE_STORAGE*, TABLE_STORAGE_USAGE_TIMELINE*, TABLES*, TABLE_OPTIONS, COLUMNS, COLUMN_FIELD_PATHS, PARTITIONS, VIEWS, MATERIALIZED_VIEWS, TABLE_SNAPSHOTS*, TABLE_CONSTRAINTS, KEY_COLUMN_USAGE, SCHEMATA*, SCHEMATA_OPTIONS, SCHEMATA_REPLICAS*, SCHEMATA_LINKS, SHARED_DATASET_USAGE).

  • Platform, Governance & Ingestion Schema Dictionary (references/schema_others.md): Complete column dictionary, physical units, and least-privilege IAM roles for all remaining views including Access Control (OBJECT_PRIVILEGES, ROW_ACCESS_POLICIES, ROW_ACCESS_POLICY_OPTIONS), Streaming Ingestion (STREAMING_TIMELINE_BY_PROJECT*, WRITE_API_TIMELINE_BY_PROJECT*), Configuration Options (PROJECT_OPTIONS*, EFFECTIVE_PROJECT_OPTIONS, ORGANIZATION_OPTIONS*, ORGANIZATION_OPTIONS_CHANGES), Insights & Recommendations (RECOMMENDATIONS*, INSIGHTS), and Indexes/BI Engine/Routines (SEARCH_INDEXES*, SEARCH_INDEX_COLUMNS, SEARCH_INDEX_OPTIONS, VECTOR_INDEXES*, VECTOR_INDEX_COLUMNS, VECTOR_INDEX_OPTIONS, BI_CAPACITIES, BI_CAPACITY_CHANGES, ROUTINES*, ROUTINE_OPTIONS, PARAMETERS).

Files

references/schema_compute.md

BigQuery Compute & Capacity INFORMATION_SCHEMA Reference

A comprehensive dictionary, column definition guide, and physical unit specification for all Compute, Job, Session, Reservation, Capacity Commitment, and Assignment views in BigQuery INFORMATION_SCHEMA.

Table of Contents

  • View Scoping & Qualification Matrix (Lines 38-57)

  • 1. Jobs & Compute Telemetry Views (Lines 58-268)

    • INFORMATION_SCHEMA.JOBS (and _BY_PROJECT, _BY_ORGANIZATION, _BY_USER, _BY_FOLDER) (Lines 60-177)

    • INFORMATION_SCHEMA.JOBS_TIMELINE (and _BY_PROJECT, _BY_ORGANIZATION, _BY_USER, _BY_FOLDER) (Lines 178-233)

    • INFORMATION_SCHEMA.SESSIONS_BY_USER (and _BY_PROJECT) (Lines 234-268)

  • 2. Capacity, Reservations & Commitments Views (Lines 269-588)

    • INFORMATION_SCHEMA.RESERVATIONS (and _BY_PROJECT) (Lines 271-309)

    • INFORMATION_SCHEMA.RESERVATION_CHANGES (and _BY_PROJECT) (Lines 310-352)

    • INFORMATION_SCHEMA.RESERVATIONS_TIMELINE (and _BY_PROJECT) (Lines 353-426)

    • INFORMATION_SCHEMA.CAPACITY_COMMITMENTS (and _BY_PROJECT) (Lines 427-457)

    • INFORMATION_SCHEMA.CAPACITY_COMMITMENT_CHANGES_BY_PROJECT (and _CHANGES) (Lines 458-496)

    • INFORMATION_SCHEMA.ASSIGNMENTS (and _BY_PROJECT) (Lines 497-527)

    • INFORMATION_SCHEMA.ASSIGNMENT_CHANGES_BY_PROJECT (and _CHANGES) (Lines 528-562)

    • INFORMATION_SCHEMA.BI_CAPACITIES (and BI_CAPACITY_CHANGES) (Lines 563-588)

View Scoping & Qualification Matrix

BigQuery Compute and Capacity views are Region-Only scoped. They require the region-{region} dataset qualifier (e.g. `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.{view_name}) and cannot be scoped to a single dataset:

<!-- mdformat off -->

View FamilyINFORMATION_SCHEMA View(s)Qualification ScopeSyntax Pattern & Scoping Rules
Jobs & ScriptsJOBS* (_BY_PROJECT, _BY_USER, _BY_FOLDER, _BY_ORGANIZATION)Region-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.JOBS*<br>• Real-time & historical job metadata (180 days retention).<br>• _BY_USER variant requires least privilege (roles/bigquery.user).
Job TimelineJOBS_TIMELINE* (_BY_PROJECT, _BY_USER, _BY_FOLDER, _BY_ORGANIZATION)Region-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.JOBS_TIMELINE*<br>• 1-second continuous slot time-series slices for fine-grained workload profiling.
SQL SessionsSESSIONS_BY_USER, SESSIONS_BY_PROJECTRegion-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.SESSIONS*<br>• Active and interactive multi-statement SQL sessions and notebook lifetimes.
ReservationsRESERVATIONS*, RESERVATION_CHANGES*Region-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.RESERVATIONS*<br>• Current baseline slot limits, edition tier bindings, and reservation lifecycle changes (RESERVATION_CHANGES).
Reservation TimelineRESERVATIONS_TIMELINE* (_BY_PROJECT)Region-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.RESERVATIONS_TIMELINE*<br>• 1-minute discrete timeline of assigned baseline slots and periodic autoscale slot-seconds (period_autoscale_slot_seconds). Retention is 180 days.
Capacity CommitmentsCAPACITY_COMMITMENTS*, CAPACITY_COMMITMENT_CHANGES_BY_PROJECTRegion-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.CAPACITY_COMMITMENTS*<br>• 1-Year / 3-Year commitment purchases, active states, renewal plans, and lifecycle changes (CAPACITY_COMMITMENT_CHANGES).
Workload AssignmentsASSIGNMENTS*, ASSIGNMENT_CHANGES_BY_PROJECTRegion-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.ASSIGNMENTS*<br>• Mapping of projects/folders/orgs to specific reservations (assignee_id, job_type) and assignment lifecycle changes.
BI Engine CapacitiesBI_CAPACITIES*, BI_CAPACITY_CHANGES*Region-Only `{project_id}`.`region-{region}`.INFORMATION_SCHEMA.BI_CAPACITIES*<br>• BI Engine RAM allocation sizes (bytes) and preferred table routing rules.

<!-- mdformat on -->

1. Jobs & Compute Telemetry Views

INFORMATION_SCHEMA.JOBS (and _BY_PROJECT, _BY_ORGANIZATION, _BY_USER, _BY_FOLDER)
High-Level Description

Provides real-time and historical metadata for all query, load, extract, and copy jobs executed in the project or organization. Contains critical compute telemetry including bytes billed, execution durations, slot consumption, parent-child script hierarchy, and error classifications. Retention is 180 days.

Required IAM Permissions & Predefined Roles
  • JOBS_BY_USER (Least Privilege): Requires bigquery.jobs.list on the project. Granted by BigQuery User (roles/bigquery.user), BigQuery Job User (roles/bigquery.jobUser), or BigQuery Admin (roles/bigquery.admin).

  • JOBS / JOBS_BY_PROJECT: Requires bigquery.jobs.listAll on the project. Granted by BigQuery Resource Admin (roles/bigquery.resourceAdmin), BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Studio Admin (roles/bigquery.studioAdmin), or BigQuery Admin (roles/bigquery.admin).

  • JOBS_BY_FOLDER: Requires bigquery.jobs.listAll on the parent folder.

  • JOBS_BY_ORGANIZATION: Requires bigquery.jobs.listAll on the organization.

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription & Conversion Formula
bi_engine_statisticsRECORDStructBI Engine execution mode (bi_engine_mode, acceleration_mode, bi_engine_reasons).
cache_hitBOOLEANBooleanTRUE if query results were served from deterministic cache (0 billed bytes).
continuousBOOLEANBooleanWhether the job is a continuous query.
continuous_query_info.output_watermarkTIMESTAMPUTC TimestampPoint up to which continuous query has successfully processed data.
creation_timeTIMESTAMPUTC Timestamp(Partitioning column) Job submission timestamp in UTC. Pad by -2 / +1 days relative to target PST billing window for partition pruning.
destination_tableRECORDStructDestination table reference (project_id, dataset_id, table_id).
dml_statisticsRECORDStructDML row modifications (inserted_row_count, deleted_row_count, updated_row_count). Only in _BY_PROJECT, _BY_USER, _BY_FOLDER.
editionSTRINGEnumEdition tier executing the job ('STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS').
end_timeTIMESTAMPUTC TimestampTimestamp when job completed execution (DONE state). Used for PST billing alignment: EXTRACT(DATE FROM end_time AT TIME ZONE 'PST8PDT').
error_resultRECORDStructJob failure details (reason, location, message). Query is billable if error_result IS NULL OR error_result.reason = 'stopped'.
external_service_costsARRAY<RECORD>Struct ArrayArray of external service costs incurred by the query job.
folder_numbersARRAY<INT64>ArrayFolder hierarchy IDs containing the project (only populated in JOBS_BY_FOLDER).
job_creation_reason.codeSTRINGEnumHigh-level job creation reason: 'REQUESTED', 'LONG_RUNNING', 'LARGE_RESULTS', 'OTHER'.
job_idSTRINGUUIDUnique job identifier within project and region (e.g. bquxjob_1234).
job_stagesARRAY<RECORD>Struct ArrayQuery execution plan stages, read/compute/write ratios, records read, and shuffle spill statistics. Empty for queries that read from tables with row-level access policies.
job_typeSTRINGEnumJob type: 'QUERY', 'LOAD', 'EXTRACT', 'COPY', or NULL (background job).
labelsARRAY<RECORD>Struct ArrayKey-value labels applied to the job for cost attribution.
materialized_view_statisticsRECORDStructStatistics of materialized views considered and chosen for query rewrite.
metadata_cache_statisticsRECORDStructStatistics for metadata column index usage on external tables.
parent_job_idSTRINGUUIDJob ID of parent multi-statement query script or workflow.
prioritySTRINGEnumScheduling priority: 'INTERACTIVE' or 'BATCH'.
principal_subjectSTRINGPrincipalIAM principal subject string identity.
project_idSTRINGProject ID(Clustering column) GCP project ID that submitted and was billed for the job.
project_numberINT64Numeric IDGCP project number.
querySTRINGSQL StringRaw SQL query text (available in _BY_PROJECT and _BY_USER).
query_dialectSTRINGEnumDialect used: 'GOOGLE_SQL', 'LEGACY_SQL', 'DEFAULT_LEGACY_SQL', 'DEFAULT_GOOGLE_SQL'.
query_info.optimization_detailsRECORDStructHistory-based optimizations applied to the job (only in JOBS_BY_PROJECT).
query_info.performance_insightsRECORDStructOptimization opportunities surfaced by the engine (e.g. Stage Performance, Join Spill).
query_info.query_hashes.normalized_literalsSTRINGHash StringAbstract query signature with literal values stripped. Used to group identical recurring query templates.
query_info.resource_warningSTRINGWarningSystem warning if resource usage during query processing exceeded internal thresholds.
referenced_tablesARRAY<RECORD>Struct ArrayList of all base tables, views, and external assets referenced by query (project_id, dataset_id, table_id).
reservation_idSTRINGResource PathCapacity reservation path (ADMIN_PROJECT:LOCATION.RESERVATION_NAME). NULL for on-demand queries.
reservation_group_pathARRAY<STRING>ArrayHierarchical reservation group path (e.g. ['my-group']).
search_statisticsRECORDStructStatistics for search queries utilizing search indexes.
session_infoRECORDStructMulti-query session context (session_id).
start_timeTIMESTAMPUTC TimestampTimestamp when compute resources transitioned from PENDING to RUNNING.
stateSTRINGEnumLifecycle execution state: 'PENDING', 'RUNNING', 'DONE'.
statement_typeSTRINGEnumSQL statement category (e.g. 'SELECT', 'CREATE_MODEL', 'SCRIPT', 'INSERT', 'UPDATE', 'DELETE').
timelineARRAY<RECORD>Struct ArraySlice-level stage progression snapshots (elapsed_ms, total_slot_ms, pending_units, completed_units, active_units).
total_bytes_billedINT64BytesRaw billable bytes. Formula to convert to TB: (total_bytes_billed / POWER(1024, 4)) * CASE statement_type WHEN 'CREATE_MODEL' THEN 50 ELSE 1 END. Returns NULL if Row-Level Security (RLS) is active.
total_bytes_processedINT64BytesTotal uncompressed bytes scanned before partition/column pruning.
total_modified_partitionsINT64CountNumber of distinct table partitions updated by DML or load job.
total_services_sku_slot_msINT64Slot-msSlot-ms consumed by external service workloads billed on the Services SKU.
total_slot_msINT64Slot-msTotal slot compute time consumed across entire duration including retries. Formula for Slot-Hours: total_slot_ms / 1000.0 / 3600.0.
transaction_idSTRINGUUIDTransaction ID in which this job ran, if any.
transferred_bytesINT64BytesNetwork egress/ingress bytes for BigQuery Omni and cross-region queries.
user_emailSTRINGEmail(Clustering column) Email address or service account of the user who ran the job.
vector_search_statisticsRECORDStructStatistics for vector search queries.

<!-- mdformat on -->

Nested job_stages Schema (Field in JOBS)

The job_stages column in JOBS is an ARRAY<RECORD> where each element represents a discrete execution stage (Input, Compute, Shuffle, Join, Output) in the query plan (note that job_stages is empty for queries that read from tables with row-level access policies):

  • id (INT64): Unique 0-indexed execution stage identifier.

  • name (STRING): Stage identifier (e.g. 'S00: Input', 'S01: Aggregate').

  • input_stages (ARRAY<INT64>): Stage IDs whose outputs feed into this stage.

  • start_ms (INT64): Millisecond timestamp when the stage began.

  • end_ms (INT64): Millisecond timestamp when the stage completed.

  • slot_ms (INT64): Slot compute time consumed by this stage.

  • shuffle_output_bytes (INT64): Bytes written to distributed shuffle.

  • shuffle_output_bytes_spilled (INT64): Bytes spilled to disk due to shuffle RAM pressure.

  • records_read (INT64): Number of input records consumed.

  • records_written (INT64): Number of output records produced.

  • parallel_inputs (INT64): Maximum parallel worker shards allocated.

  • completed_parallel_inputs (INT64): Shards successfully finished.

  • wait_ratio_avg, wait_ratio_max (FLOAT64): Fraction (0.0-1.0) of time the average or slowest worker in the stage spent waiting to be scheduled on available slots relative to the longest time any worker in any stage spent in any phase.

  • wait_ms_avg, wait_ms_max (INT64): Milliseconds the average or slowest worker in the stage spent waiting to be scheduled on available slots.

  • read_ratio_avg, read_ratio_max, read_ms_avg, read_ms_max (FLOAT64 / INT64): Relative ratio and duration (ms) workers spent reading input table or shuffle data.

  • compute_ratio_avg, compute_ratio_max, compute_ms_avg, compute_ms_max (FLOAT64 / INT64): Relative ratio and duration (ms) workers spent in CPU computation.

  • write_ratio_avg, write_ratio_max, write_ms_avg, write_ms_max (FLOAT64 / INT64): Relative ratio and duration (ms) workers spent writing intermediate shuffle or final output data.

  • status (STRING): 'COMPLETE', 'RUNNING', 'FAILED', 'CANCELLED'.

  • steps (ARRAY<RECORD>): Pipeline operations (kind, substeps).

INFORMATION_SCHEMA.JOBS_TIMELINE (and _BY_PROJECT, _BY_ORGANIZATION, _BY_USER, _BY_FOLDER)
High-Level Description

Exposes fine-grained 1-second continuous telemetry for running BigQuery jobs. Tracks instantaneous slot utilization, shuffle memory pressure, and concurrency queue depth. Ideal for diagnosing latency spikes, scheduler throttling, and slot starvation.

Required IAM Permissions & Predefined Roles
  • JOBS_BY_USER (Least Privilege): Requires bigquery.jobs.list on the project. Granted by BigQuery User (roles/bigquery.user), BigQuery Job User (roles/bigquery.jobUser), or BigQuery Admin (roles/bigquery.admin).

  • JOBS / JOBS_BY_PROJECT: Requires bigquery.jobs.listAll on the project. Granted by BigQuery Resource Admin (roles/bigquery.resourceAdmin), BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Studio Admin (roles/bigquery.studioAdmin), or BigQuery Admin (roles/bigquery.admin).

  • JOBS_BY_FOLDER: Requires bigquery.jobs.listAll on the parent folder.

  • JOBS_BY_ORGANIZATION: Requires bigquery.jobs.listAll on the organization.

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription & Conversion Formula
cache_hitBOOLEANBooleanWhether query results were served from cache.
editionSTRINGEnumTarget Edition tier ('STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS').
error_resultRECORDStructDetails of error (if any) as an ErrorProto (reason, location, message).
job_creation_timeTIMESTAMPUTC Timestamp(Partitioning column) Timestamp when job was submitted in UTC.
job_end_timeTIMESTAMPUTC TimestampTimestamp when job completed execution.
job_idSTRINGUUIDUnique job identifier (e.g. bquxjob_1234).
job_start_timeTIMESTAMPUTC TimestampTimestamp when compute resources began execution.
job_typeSTRINGEnum'QUERY', 'LOAD', 'EXTRACT', 'COPY', or NULL (background).
labelsARRAY<RECORD>Struct ArrayArray of key-value labels applied to the job.
parent_job_idSTRINGUUIDID of the parent multi-statement query script, if any.
period_estimated_runnable_unitsINT64CountNumber of worker units ready to execute immediately but queued waiting for available slots.
period_shuffle_ram_usage_ratioFLOAT64Ratio (0.0–1.0)Peak shuffle RAM utilization ratio during slice (0.0 if running on autoscaling with 0 baseline slots).
period_slot_msINT64Slot-msCompute consumed within this 1-second slice. Instantaneous Slots: period_slot_ms / 1000.0.
period_startTIMESTAMPUTC TimestampStart time of this 1-second interval.
principal_subjectSTRINGPrincipalIAM principal subject string representation.
prioritySTRINGEnumJob scheduling priority: 'INTERACTIVE' or 'BATCH'.
project_idSTRINGProject ID(Clustering column) ID of the project submitting the job.
project_numberINT64Numeric IDNumeric project number.
reservation_group_pathARRAY<STRING>ArrayHierarchical reservation group path (e.g. ['my-group']).
reservation_idSTRINGResource PathName of primary reservation assigned to job at end of period (ADMIN_PROJECT:LOCATION.RESERVATION_NAME).
stateSTRINGEnumRunning state of the job at end of slice: 'PENDING', 'RUNNING', 'DONE'.
statement_typeSTRINGEnumStatement category (e.g. 'SELECT', 'INSERT', 'UPDATE', 'DELETE').
total_bytes_billedINT64BytesCumulative bytes billed by job up to slice (populated for completed jobs).
total_bytes_processedINT64BytesCumulative bytes processed by job up to slice.
transaction_idSTRINGUUIDID of the transaction in which this job ran, if any.
user_emailSTRINGEmail(Clustering column) Email address or service account of the user who ran the job.

<!-- mdformat on -->

INFORMATION_SCHEMA.SESSIONS_BY_USER (and _BY_PROJECT)
High-Level Description

Lists multi-statement and interactive notebook sessions created by users and service accounts. Tracks active session IDs, session lifetimes, and temporary table allocations.

Required IAM Permissions & Predefined Roles
  • SESSIONS_BY_USER (Least Privilege): Requires bigquery.jobs.list on the project. Granted by BigQuery User (roles/bigquery.user), BigQuery Job User (roles/bigquery.jobUser), or BigQuery Admin (roles/bigquery.admin).

  • SESSIONS_BY_PROJECT: Requires bigquery.jobs.listAll on the project. Granted by BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
session_idSTRINGID StringUnique session identifier.
project_idSTRINGProject IDProject hosting the session.
project_numberINT64Numeric IDNumeric project identifier.
user_emailSTRINGEmailUser identity who initiated the session.
principal_subjectSTRINGPrincipalIAM principal subject.
is_activeBOOLEANBooleanTRUE if the session is currently active and can receive new statements.
creation_timeTIMESTAMPUTC TimestampTimestamp when the session was created.
expiration_timeTIMESTAMPUTC TimestampTimestamp when the session expires and temp tables are dropped.
last_modified_timeTIMESTAMPUTC TimestampTimestamp of the most recent query in this session.

<!-- mdformat on -->

<a id="sec-reservations"></a>

2. Capacity, Reservations & Commitments Views

INFORMATION_SCHEMA.RESERVATIONS (and _BY_PROJECT)
High-Level Description

Contains a near real-time list of all capacity reservations in the administration project, including baseline slot allocations, autoscale limits, Edition tiers, scaling modes, and disaster recovery replica locations.

Required IAM Permissions & Predefined Roles
  • Requires bigquery.reservations.list on the administration project.

  • Predefined Roles: BigQuery Resource Admin (roles/bigquery.resourceAdmin), BigQuery Resource Editor (roles/bigquery.resourceEditor), BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery User (roles/bigquery.user), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
autoscale.current_slotsINT64SlotsReal-time dynamically provisioned autoscale slots added to reservation.
autoscale.max_slotsINT64SlotsMaximum configured autoscale slot ceiling.
ddlSTRINGSQL StringGoogleSQL DDL statement used to create this reservation.
editionSTRINGEnumEdition tier: 'STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS'.
ignore_idle_slotsBOOLEANBooleanWhen FALSE, reservation can borrow unused idle slots from other commitments.
labelsARRAY<RECORD>Struct ArrayArray of key-value labels associated with the reservation.
max_slotsINT64SlotsTotal maximum slot limit (baseline + idle + autoscale) for reservation predictability.
original_primary_locationSTRINGRegionRegion where the reservation was originally created (for Disaster Recovery).
primary_locationSTRINGRegionCurrent location of reservation's primary replica in Disaster Recovery.
project_idSTRINGProject IDID of the reservation administration project.
project_numberINT64Numeric IDNumber of the administration project.
reservation_group_pathARRAY<STRING>ArrayReservation group hierarchy path (e.g. ['my-group']).
reservation_nameSTRINGResource PathUser-provided reservation name.
scaling_modeSTRINGEnumScaling mode determining progression from baseline to max_slots ('AUTOSCALE', 'MANUAL').
secondary_locationSTRINGRegionCurrent location of reservation's secondary replica in Disaster Recovery.
slot_capacityINT64SlotsBaseline slot capacity configured for the reservation.
target_job_concurrencyINT64CountTarget maximum concurrent queries before queueing (0 = dynamic auto-concurrency).

<!-- mdformat on -->

INFORMATION_SCHEMA.RESERVATION_CHANGES (and _BY_PROJECT)
High-Level Description

Contains a near real-time audit log of all changes made to reservations within the administration project (creation, modification of baseline/autoscale, and deletion). This view contains current reservations and deleted reservations (deleted reservations are kept for a maximum of 41 days after which they are removed from the view).

Required IAM Permissions & Predefined Roles
  • Requires bigquery.reservations.list on the administration project.

  • Predefined Roles: BigQuery Resource Admin (roles/bigquery.resourceAdmin), BigQuery Resource Editor (roles/bigquery.resourceEditor), BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery User (roles/bigquery.user), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
actionSTRINGEnumEvent action type: 'CREATE', 'UPDATE', 'DELETE'.
autoscale.current_slotsINT64SlotsNumber of autoscale slots added to reservation at event time.
autoscale.max_slotsINT64SlotsMaximum configured autoscale slot ceiling at event time.
change_timestampTIMESTAMPUTC TimestampTimestamp when the reservation modification occurred.
editionSTRINGEnumEdition tier: 'STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS'.
ignore_idle_slotsBOOLEANBooleanSlot sharing status (FALSE allows borrowing idle capacity).
labelsARRAY<RECORD>Struct ArrayArray of key-value labels associated with the reservation.
max_slotsINT64SlotsMaximum slot limit for reservation predictability.
original_primary_locationSTRINGRegionLocation where reservation was originally created.
primary_locationSTRINGRegionLocation of primary replica in Disaster Recovery.
project_idSTRINGProject IDID of the administration project.
project_numberINT64Numeric IDNumber of the administration project.
reservation_group_pathARRAY<STRING>ArrayReservation group hierarchy path.
reservation_nameSTRINGResource PathUser-provided reservation name.
scaling_modeSTRINGEnumScaling mode ('AUTOSCALE', 'MANUAL').
secondary_locationSTRINGRegionLocation of secondary replica in Disaster Recovery.
slot_capacityINT64SlotsBaseline slot capacity configured at event time.
target_job_concurrencyINT64CountTarget query concurrency limit.
user_emailSTRINGEmailAdministrator or service identity who initiated the change ('google' if automated).

<!-- mdformat on -->

INFORMATION_SCHEMA.RESERVATIONS_TIMELINE (and _BY_PROJECT)
High-Level Description

Minute-by-minute discrete timeline of reservation capacity and autoscale telemetry. Serves as the authoritative source for reconciling Edition Pay-As-You-Go (PAYG) and baseline slot consumption against Cloud Billing invoices. Retention is 180 days (and one row per minute with changes for older records).

Required IAM Permissions & Predefined Roles
  • Requires bigquery.reservations.list or bigquery.reservations.get on the administration project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), BigQuery Resource Editor (roles/bigquery.resourceEditor), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription & Conversion Formula
autoscale.current_slotsINT64SlotsActive autoscaled slots provisioned during the interval.
autoscale.max_slotsINT64SlotsMaximum configured autoscaler limit ceiling.
editionSTRINGEnumTarget edition tier: 'STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS'.
ignore_idle_slotsBOOLEANBooleanFALSE if slot sharing is enabled across commitments.
is_creation_regionBOOLEANBooleanTRUE if current region is the original creation region where baseline reservation slots are billed. FALSE in secondary failover regions.
labelsARRAY<RECORD>Struct ArrayArray of labels associated with the reservation.
max_slotsINT64SlotsTotal maximum slot limit for reservation predictability.
period_autoscale_slot_secondsINT64Slot-secondsCumulative dynamic autoscaled compute consumed in that 1-minute slice. Formula for Billable Autoscale Slot-Hours: period_autoscale_slot_seconds / 3600.0.
period_startTIMESTAMPUTC TimestampStart time of this 1-minute discrete interval.
per_second_detailsARRAY<RECORD>Struct ArrayArray of 60 per-second capacity and usage snapshots (start_time, autoscale_current_slots, autoscale_max_slots, slots_assigned, slots_max_assigned, borrowed_slots, lent_slots).
project_idSTRINGProject IDID of the reservation administration project.
project_numberINT64Numeric IDNumeric project ID.
reservation_group_pathARRAY<STRING>ArrayHierarchical reservation group path.
reservation_idSTRINGResource PathFormatted reservation path (project_id:location.reservation_name) for joining with JOBS_TIMELINE.
reservation_nameSTRINGResource PathName of the reservation.
scaling_modeSTRINGEnumScaling mode ('AUTOSCALE', 'MANUAL').
slot_capacityINT64SlotsTotal configured baseline slot capacity. Formula for Billable Baseline Slots: IF(is_creation_region, slot_capacity, 0).
slots_assignedINT64SlotsInstantaneous active baseline allocation. Shifts to secondary region during DR failover events (for invoicing, use slot_capacity with is_creation_region).
slots_max_assignedINT64SlotsMaximum slot capacity for reservation including idle sharing (slots_assigned if ignore_idle_slots = TRUE).

<!-- mdformat on -->

Nested per_second_details Schema (Field in RESERVATIONS_TIMELINE)

The per_second_details column is an ARRAY<STRUCT> providing 1-second discrete capacity and usage snapshots within the 1-minute period:

  • start_time (TIMESTAMP): The exact UTC timestamp of the second.

  • autoscale_current_slots (INT64): Autoscaling slots available to the reservation at this second (excludes baseline slots). Reflects accurate second-by-second scaling when autoscaler adjusts multiple times within a minute.

  • autoscale_max_slots (INT64): Maximum autoscaling slots configured at this second (excludes baseline slots).

  • slots_assigned (INT64): Baseline slot capacity assigned to this reservation at this second.

  • slots_max_assigned (INT64): Maximum slot capacity including idle slot sharing (slots_assigned if ignore_idle_slots = TRUE).

  • borrowed_slots (INT64): Number of slots consumed from the shared idle slot pool. Populated only when ignore_idle_slots = FALSE and idle slots were used during this second.

  • lent_slots (INT64): Number of baseline slots borrowed by other reservations from this reservation's baseline pool. Populated only when ignore_idle_slots = FALSE and idle slots were shared during this second.

[!NOTE] Array Population Invariant: When there are autoscale or reservation changes during the minute, per_second_details is populated with 60 elements (one per second). For steady-state reservations with no changes during that minute, per_second_details is an empty array to prevent redundant repeating data. To analyze second-level telemetry, use LEFT JOIN UNNEST(per_second_details) AS s.

INFORMATION_SCHEMA.CAPACITY_COMMITMENTS (and _BY_PROJECT)
High-Level Description

Lists all currently active dedicated slot commitments, commitment plans, renewal parameters, and remaining commitment lifecycles.

Required IAM Permissions & Predefined Roles
  • Requires bigquery.capacityCommitments.list or bigquery.capacityCommitments.get on the administration project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
capacity_commitment_idSTRINGID StringUnique commitment identifier string.
commitment_planSTRINGEnumCommitment duration tier: 'ANNUAL', 'THREE_YEAR'.
ddlSTRINGSQL StringGoogleSQL DDL statement used to create this capacity commitment.
editionSTRINGEnumTarget Edition: 'STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS'.
is_flat_rateBOOLEANBooleanTRUE for legacy flat-rate commitments; FALSE for Edition commitments.
project_idSTRINGProject IDID of the administration project.
project_numberINT64Numeric IDNumber of the administration project.
renewal_planSTRINGEnumPlan upon expiry: 'ANNUAL', 'THREE_YEAR', 'NONE'.
slot_countINT64SlotsDedicated capacity slot quantity.
stateSTRINGEnumLifecycle state: 'PENDING', 'ACTIVE'.

<!-- mdformat on -->

INFORMATION_SCHEMA.CAPACITY_COMMITMENT_CHANGES_BY_PROJECT (and _CHANGES)
High-Level Description

Complete audit log of all commitment purchase, modification, renewal, and deletion lifecycle events. This view contains current capacity commitments and deleted capacity commitments (deleted commitments are kept for a maximum of 41 days after which they are removed from the view). Used to construct running-total historical capacity curves for CUD reconciliation.

Required IAM Permissions & Predefined Roles
  • Requires bigquery.capacityCommitments.list or bigquery.capacityCommitments.get on the administration project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
actionSTRINGEnumEvent action: 'CREATE', 'UPDATE', 'DELETE'. Used with LAG/LEAD to compute point-in-time deltas.
capacity_commitment_idSTRINGID StringUnique commitment identifier string.
change_timestampTIMESTAMPUTC TimestampTimestamp when the commitment lifecycle event occurred.
commitment_end_timeTIMESTAMPUTC TimestampExpiration timestamp when commitment plan expires or renews (NULL if not ACTIVE).
commitment_planSTRINGEnumDuration plan: 'ANNUAL', 'THREE_YEAR'.
commitment_start_timeTIMESTAMPUTC TimestampTimestamp when commitment became active (NULL if not ACTIVE).
editionSTRINGEnumTarget Edition: 'STANDARD', 'ENTERPRISE', 'ENTERPRISE_PLUS'.
failure_statusRECORDStructFailure reason for a FAILED commitment plan (code, message).
is_flat_rateBOOLEANBooleanTRUE for legacy flat-rate commitments; FALSE for Edition commitments.
project_idSTRINGProject IDID of the administration project.
project_numberINT64Numeric IDNumber of the administration project.
renewal_planSTRINGEnumPlan upon expiry: 'ANNUAL', 'THREE_YEAR', 'NONE'.
slot_countINT64SlotsDedicated capacity slot quantity.
stateSTRINGEnumLifecycle state: 'PENDING', 'ACTIVE', 'DELETED'.
user_emailSTRINGEmailAdministrator or identity who initiated change ('google' if automated).

<!-- mdformat on -->

INFORMATION_SCHEMA.ASSIGNMENTS (and _BY_PROJECT)
High-Level Description

Defines the active mapping of GCP organizations, folders, and projects to capacity reservations. Controls which compute pool processes query, pipeline, and ML workloads.

Required IAM Permissions & Predefined Roles
  • Requires bigquery.reservationAssignments.list or bigquery.reservationAssignments.get on the administration project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
assignee_idSTRINGResource PathGCP resource path (projects/123, folders/456, organizations/789).
assignee_numberINT64Numeric IDNumeric assignee resource ID.
assignee_typeSTRINGEnumResource level: 'PROJECT', 'FOLDER', 'ORGANIZATION'.
assignment_idSTRINGID StringUnique assignment identifier string.
ddlSTRINGSQL StringGoogleSQL DDL statement used to create this assignment.
job_typeSTRINGEnumAssigned traffic type: 'QUERY', 'PIPELINE', 'CONTINUOUS', 'ML_EXTERNAL', 'BACKGROUND'.
project_idSTRINGProject IDID of the administration project.
project_numberINT64Numeric IDNumber of the administration project.
reservation_nameSTRINGResource PathName of the reservation that the assignment uses.

<!-- mdformat on -->

INFORMATION_SCHEMA.ASSIGNMENT_CHANGES_BY_PROJECT (and _CHANGES)
High-Level Description

Audit log of all assignment creation, update, and deletion events within the administration project. This view contains current assignments and deleted assignments (deleted assignments are kept for a maximum of 41 days after which they are removed from the view).

Required IAM Permissions & Predefined Roles
  • Requires bigquery.reservationAssignments.list on the administration project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
actionSTRINGEnumEvent type: 'CREATE', 'UPDATE', 'DELETE'.
assignee_idSTRINGResource PathUnique ID of the assignee resource (projects/123, folders/456, organizations/789).
assignee_numberINT64Numeric IDNumeric assignee resource ID.
assignee_typeSTRINGEnumResource type: 'PROJECT', 'FOLDER', 'ORGANIZATION'.
assignment_idSTRINGID StringUnique assignment identifier string.
change_timestampTIMESTAMPUTC TimestampTimestamp when the change occurred.
job_typeSTRINGEnumJob type: 'QUERY', 'PIPELINE'.
project_idSTRINGProject IDID of the administration project.
project_numberINT64Numeric IDNumber of the administration project.
reservation_nameSTRINGResource PathName of the reservation that the assignment uses.
stateSTRINGEnumState of the assignment: 'PENDING', 'ACTIVE'.
user_emailSTRINGEmailAdministrator or identity who made the change ('google' if automated).

<!-- mdformat on -->

INFORMATION_SCHEMA.BI_CAPACITIES (and BI_CAPACITY_CHANGES)
High-Level Description

Defines BI Engine memory capacity allocations and table routing preferences for sub-second SQL acceleration.

Required IAM Permissions & Predefined Roles
  • Requires bigquery.biengine.get or bigquery.biengine.list on the project.

  • Predefined Roles: BigQuery Resource Viewer (roles/bigquery.resourceViewer), BigQuery Resource Admin (roles/bigquery.resourceAdmin), or BigQuery Admin (roles/bigquery.admin).

<!-- mdformat off -->

Column NameData TypePhysical UnitDescription
bi_capacity_nameSTRINGStringName of the capacity object (always 'default').
preferred_tablesARRAY<STRING>ArraySet of preferred table paths for BI Engine caching (NULL = all tables in project).
project_idSTRINGProject IDProject containing the BI Engine capacity.
project_numberINT64Numeric IDProject number containing the BI Engine capacity.
sizeINT64BytesBI Engine allocated RAM capacity in bytes. GiB: size / POWER(1024, 3).
change_timestampTIMESTAMPUTC Timestamp(In BI_CAPACITY_CHANGES) Timestamp when the update was made.
user_emailSTRINGEmail(In BI_CAPACITY_CHANGES) Administrator or service identity who made the change.

<!-- mdformat on -->

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs a command-line tool, Needs Node.js

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google
Publisher
Google (Official)
Source
google/skills · skills/cloud/bigquery-observability · commit 2194d3b
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download bigquery-observability.zip