本文档介绍了如何使用 Cloud Assist 窗格,它是 Gemini Cloud Assist 中的对话式助理。
借助 Cloud Assist 窗格,您可以编写自然语言语句或问题(称为提示),以获取深入的说明、建议的操作或引导式工作流,帮助您快速高效地完成任务,而无需成为云专家。
准备工作
打开 Cloud Assist 窗格
前往 Google Cloud 控制台中的任意页面,例如 Gemini for Google Cloud 页面。
在 Google Cloud 控制台工具栏中,点击 spark 打开或关闭 Gemini AI 聊天。
Cloud Assist 窗格随即打开,并显示一些可供点击的示例提示。提示会因您当前的 Google Cloud 控制台页面而异。
可选:撰写自然语言提示以获取帮助。
提示 Gemini Cloud Assist 提供帮助
本部分包含一些示例场景和相关提示,您可以将其输入 Cloud Assist 窗格中。
了解已部署的素材资源及其近期的更改
您的项目必须有一个组织,以便了解已部署的资源及其近期更改。不支持没有组织的项目。
以下示例使用 Cloud Asset API。
在 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/…"
分析资源的效果趋势
以下示例使用 Cloud Monitoring API。
在 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?
查找建议和优化机会
以下示例使用 Recommender API。
在 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?