Analyze and optimize Google Cloud resources

This document describes how to use the Cloud Assist pane, which is a conversational assistant in Gemini Cloud Assist.

The Cloud Assist pane lets you write natural language statements or questions (called prompts) to get in-depth explanations, suggested actions, or guided workflows that help you complete tasks quickly and efficiently without needing to be a cloud expert.

Before you begin

Open the Cloud Assist pane

  1. Go to any page in the Google Cloud console, such as the Gemini for Google Cloud page.

    Go to Gemini for Google Cloud

  2. In the Google Cloud console toolbar, click spark Open or close Gemini AI chat.

    The Cloud Assist pane opens and displays a few example prompts that you can click. The prompts vary depending on your current Google Cloud console page.

  3. Optional: Write natural language prompts for assistance.

Prompt Gemini Cloud Assist for assistance

This section includes a few example scenarios and related prompts that you can enter in the Cloud Assist pane.

Understand deployed assets and their recent changes

Your project must have an organization to understand deployed assets and their recent changes. Projects that don't have an organization are not supported.

The following example uses the Cloud Asset API.

  1. In the Cloud Assist pane, send the following prompt: What are the names of my instances and their private inference names?

    Gemini Cloud Assist lists instances, their names, and private interface names.

  2. Optional: Send any of the following prompts for similar scenarios:

    • 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/…"

The following example uses the Cloud Monitoring API.

  1. In the Cloud Assist pane, send the following prompt: Which of my VMs have the highest utilization?

    Gemini Cloud Assist provides a quick analysis of the performance trends of resources such as traffic, throughput, and executions.

  2. Optional: Send any of the following prompts for similar scenarios:

    • 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?

Find recommendations and optimization opportunities

The following example uses the Recommender API.

  1. In the Cloud Assist pane, send the following prompt: Give me recommendations to reduce my resource costs.

    Gemini Cloud Assist provides specific recommendations for estimated savings and cluster reliability.

  2. Optional: Send any of the following prompts for similar scenarios:

    • 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?

What's next