본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10228

bigquery-observability

하는 일

이 스킬은 BigQuery 작업이 어떻게 실행되었는지 살펴보도록 돕습니다. 어떤 쿼리가 느리거나 비싼지 보고 그 이유를 알고 싶은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓특정 기간 동안 어떤 BigQuery 쿼리가 가장 느리거나 비용이 많이 들었는지 보고 싶을 때.
  • ✓BigQuery 작업 하나의 세부 정보를 보고 시간이 어디에 쓰였는지 알아야 할 때.
  • ✓BigQuery의 슬롯 사용량이나 예약을 모니터링하고 싶을 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/bigquery-observability/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/bigquery-observability/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지난주 BigQuery 쿼리 중 가장 느리고 비용이 많이 든 것을 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

질문에 맞는 데이터 소스를 고릅니다. 쿼리 기록 테이블이나 단일 작업 조회 등이 해당됩니다. 그다음 정보를 가져오는 효율적인 쿼리를 작성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 -->
Tool Primary Use Cases Strengths & Capabilities When 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 is

자주 묻는 질문

BigQuery 설정을 바꾸나요?

아닙니다. 주로 원격 측정 데이터를 가져오므로 리소스를 바꾸지 않고 데이터를 읽습니다.

너무 자주 확인하면 안 되는 이유는 무엇인가요?

기록 쿼리는 슬롯을 쓰고 몇 초가 걸릴 수 있어서, 실시간 반복 조회보다 분석에 더 적합합니다.

INFORMATION_SCHEMA는 무엇인가요?

과거 작업, 타임라인, 예약을 기록하는 BigQuery의 내장 뷰 모음입니다.

상세 정보

작성자의 원본 설명

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 usag

repo: google/skills

인기도

GitHub 스타
22k
순위
#10228
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬