이 문서에서는 BigQuery 스튜디오에서 트레이스 데이터를 쿼리하는 방법을 설명합니다. BigQuery Studio를 사용하면 추적 데이터를 다른 비즈니스 데이터와 조인할 수 있습니다.
모니터링 가능성 분석을 시작하려면 트레이스 쿼리 및 분석을 참고하세요.
시작하기 전에
- Google Cloud 계정에 로그인합니다. Google Cloud를 처음 사용하는 경우 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Cloud Monitoring and Observability APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Cloud Monitoring and Observability APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.-
BigQuery에서 연결된 데이터 세트를 쿼리하는 데 필요한 권한을 얻으려면 관리자에게 프로젝트 또는 연결된 데이터 세트에 대한 BigQuery 데이터 뷰어 (
roles/bigquery.dataViewer) IAM 역할을 부여해 달라고 요청하세요. 역할 부여에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요. _Trace라는 관측 가능성 버킷의 연결된 BigQuery 데이터 세트가 있는지 확인합니다. 연결된 BigQuery 데이터 세트가 없으면 만듭니다.
BigQuery Studio에서 쿼리 실행
관측 가능성 분석 페이지에서 BigQuery를 열고 트레이스 데이터를 쿼리하려면 다음을 수행합니다.
-
Google Cloud 콘솔에서 manage_search 관측 가능성 분석 페이지로 이동합니다.
검색창을 사용하여 이 페이지를 찾은 경우 부제목이 Logging인 결과를 선택합니다.
쿼리를 입력하거나 로드합니다. 자세한 내용은 trace 쿼리 및 분석을 참고하세요.
툴바에서 쿼리 실행 또는 BigQuery에서 실행 라벨이 지정된 메뉴를 펼치고 BigQuery에서 열기를 선택합니다.
BigQuery Studio가 열립니다. 이 페이지에서
FROM문은 BigQuery 테이블 경로 문법을 사용하여 연결된 데이터 세트를 지정합니다. 쿼리를 수정하는 등 지원되는 작업을 쿼리에 대해 실행할 수 있습니다.BigQuery에서 열기 옵션이 사용 중지된 경우 연결된 데이터 세트가 없거나 BigQuery에서 쿼리를 열고 볼 수 있는 필요한 권한이 없는 것입니다.
BigQuery Studio에서 쿼리 실행을 클릭합니다.
가격 책정
BigQuery 사용과 관련된 비용에 대해 알아보려면 BigQuery 가격 책정을 참고하세요.