이 문서에서는 Gemini Cloud Assist의 대화형 어시스턴트를 사용하여 리소스를 분석하고 최적화하는 방법을 설명합니다. Google Cloud
Gemini Cloud Assist에서 Cloud Assist 창을 사용하여 자연어 문장 또는 질문 (프롬프트라고 함)을 작성하면 자세한 설명, 추천 작업 또는 안내 워크플로를 확인할 수 있습니다. 이러한 리소스를 사용하면 클라우드 전문가가 아니어도 빠르고 효율적으로 작업을 완료할 수 있습니다.
시작하기 전에
Cloud Assist 창 열기
Google Cloud 콘솔의 페이지(예: Google Cloud용 Gemini 페이지)로 이동합니다.
Google Cloud 콘솔 툴바에서 spark Gemini AI 채팅 열기 또는 닫기를 클릭합니다.
Cloud Assist 창이 열리고 클릭할 수 있는 몇 가지 프롬프트 예시가 표시됩니다. 프롬프트는 현재 Google Cloud 콘솔 페이지에 따라 달라집니다.
선택사항: 도움을 받기 위해 자연어 프롬프트를 작성합니다.
Gemini Cloud Assist에 지원 요청
이 섹션에는 몇 가지 시나리오 예시와 Cloud Assist 창에 입력할 수 있는 관련 프롬프트가 포함되어 있습니다.
SQL 쿼리 생성
다음 예는 Google Cloud 콘솔의 BigQuery 페이지에 있는 동안 Cloud Assist 창에서 SQL 쿼리를 생성하는 방법을 보여줍니다.
Cloud Assist 창에 다음 프롬프트를 보냅니다.
Generate a SQL query to show me the duration and subscriber type for the ten longest trips.
이 예에서는 Gemini Cloud Assist가 검토하고 BigQuery 쿼리 편집기에 복사할 수 있는 특정 SQL 쿼리를 제공합니다.
선택사항: 프롬프트를 전송하여 Python 코드를 생성합니다.
Generate Python code to query the bigquery-public-data.ml_datasets.penguins table using bigquery magics.
배포된 애셋 및 최근 변경사항 이해
프로젝트에 배포된 애셋과 최근 변경사항을 이해할 수 있는 조직이 있어야 합니다. 조직이 없는 프로젝트는 지원되지 않습니다.
다음 예에서는 Cloud 애셋 인벤토리를 사용합니다.
Cloud Assist 창에서 다음 프롬프트를 전송합니다.
What are the names of my instances and their private interface names?
Gemini Cloud Assist에는 인스턴스, 이름, 비공개 인터페이스 이름이 표시됩니다.
선택사항: 유사한 시나리오에 대해 다음 메시지 중 하나를 보냅니다.
List the name and network name for the subnetworks.
List my artifact repo.
How many BigQuery datasets have a label whose value is 'foo'?
List all config changes in the last 24 hours.
List all users granted roles/bigquery.admin and include the attached resources.
List a BigQuery dataset organized by name and location.
Describe the configuration of "pubsub/topic/…"
데이터베이스 쿼리 및 시스템 성능 분석
다음 예에서는 Google Cloud 콘솔의 Cloud SQL 페이지에서 특정 데이터베이스 인스턴스의 다음 탭에 있는 동안 Cloud Assist 창에서 쿼리 성능 데이터를 가져오는 방법을 보여줍니다.
- 개요
- 시스템 통계
- 쿼리 통계
- 쿼리 세부정보
Cloud Assist 창에 다음 프롬프트를 보냅니다.
What's the current CPU utilization of this database?
응답에는 데이터베이스 함대의 모든 규정 준수 문제 목록과 각 카테고리 및 리소스 수를 분류한 표가 포함됩니다.
선택사항: 유사한 시나리오에 대해 다음 메시지 중 하나를 보냅니다.
Summarize database query trends by users.
Which of my queries have high latency for this database instance?
What is the slowest query for this database in this instance?
What are the wait times for the query id = in this database?
How many error log entries are there for this database instance?
데이터베이스 Fleet 상태 및 규정 준수 이해
다음 예는 Cloud Assist 창에서 데이터베이스 함대 상태 및 규정 준수 데이터를 가져오는 방법을 보여줍니다.
Cloud Assist 창에 다음 프롬프트를 보냅니다.
How many databases do I have in the US?
Gemini Cloud Assist는 미국에 있는 모든 데이터베이스의 목록을 제공합니다.
선택사항: 유사한 시나리오에 대해 다음 메시지 중 하나를 보냅니다.
Where are my databases located?
What issues are affecting my databases?
Show me all databases running on Postgres.
What databases have NIST issues in Europe?
리소스의 실적 동향 분석
다음 예에서는 Cloud Monitoring을 사용합니다.
Cloud Assist 창에서 다음 프롬프트를 전송합니다.
Which of my VMs have the highest utilization?
Gemini Cloud Assist는 트래픽, 처리량, 실행과 같은 리소스의 성능 동향을 빠르게 분석합니다.
선택사항: 유사한 시나리오에 대해 다음 메시지 중 하나를 보냅니다.
What are the top 5 dataflow jobs with the highest estimated backlog processing time?
Total VM network bytes sent per second for each instance?
What's the QPS on my SQL databases?
추천 및 최적화 기회 찾기
다음 예에서는 Active Assist를 사용합니다.
Cloud Assist 창에서 다음 프롬프트를 전송합니다.
Give me recommendations to reduce my resource costs.
Gemini Cloud Assist는 예상 절감액 및 클러스터 안정성에 관한 구체적인 권장사항을 제공합니다.
선택사항: 유사한 시나리오에 대해 다음 메시지 중 하나를 보냅니다.
What are all the quotas for my project that are almost hitting the limit?
What BigQuery datasets should I partition or cluster?
Which of my VMs are idle?
다음 단계
- Gemini Cloud Assist에 대해 자세히 알아보세요.
- 보다 효과적인 Google Cloud Gemini 프롬프트를 작성하는 방법을 알아보세요.