Gemini for Google Cloud automatically collects and stores
metrics in Cloud Monitoring.
You can use the data visualization and analysis tools in Cloud Monitoring to
help you answer important questions, such as how many daily active users in your
organization are using Gemini for Google Cloud.
Limitations
Gemini in Google Cloud metrics data recording is limited to
user interactions with Gemini Code Assist within the IDE.
Before you begin
To get the permissions that
you need to view metric data by using the Google Cloud console,
ask your administrator to grant you the
Monitoring Viewer (roles/monitoring.viewer)
IAM role on your project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
If you use the search bar to find this page, then select the result whose subheading is
Monitoring.
In the list, click Gemini for Google Cloud.
Metric labels for non-user metrics
The following list includes all labels included with Gemini for
Google Cloud metrics. You can use these labels as filters in the
Monitoring dashboard when you view metrics.
method - The service that the user interacted with, including
CompleteCode, GenerateCode, GenerateText, CompleteTask.
product - The Gemini for Google Cloud product that
received or generated the message, such as code_assist.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eGemini for Google Cloud usage metrics are automatically collected and stored in Cloud Monitoring, enabling users to track and analyze data such as daily active users.\u003c/p\u003e\n"],["\u003cp\u003eThe available metrics include daily, seven-day, and twenty-eight-day active user counts, as well as the total number of responses sent by Gemini for Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eAccess to view metric data requires the Monitoring Viewer IAM role, which can be granted by an administrator, and there might be specific custom roles that can grant this access.\u003c/p\u003e\n"],["\u003cp\u003eGemini for Google Cloud metrics exclude user interactions with Gemini in BigQuery, Looker, Google Security Operations, and the Gemini pane in the Google Cloud console for Database Center.\u003c/p\u003e\n"],["\u003cp\u003eA project-specific Gemini for Google Cloud dashboard is automatically installed in Cloud Monitoring upon enabling and using the Gemini for Google Cloud API, allowing for easy viewing of aggregated metrics.\u003c/p\u003e\n"]]],[],null,["# Monitor Gemini for Google Cloud usage\n\nThis document describes how to monitor\n[Gemini for Google Cloud](/gemini/docs/overview) usage in your\norganization.\n\nGemini for Google Cloud automatically collects and stores\nmetrics in Cloud Monitoring.\n\nYou can use the data visualization and analysis tools in Cloud Monitoring to\nhelp you answer important questions, such as how many daily active users in your\norganization are using Gemini for Google Cloud.\n\nLimitations\n-----------\n\nGemini in Google Cloud metrics data recording is limited to\nuser interactions with Gemini Code Assist within the IDE.\n\nBefore you begin\n----------------\n\n\nTo get the permissions that\nyou need to view metric data by using the Google Cloud console,\n\nask your administrator to grant you the\n\n\n[Monitoring Viewer](/iam/docs/roles-permissions/monitoring#monitoring.viewer) (`roles/monitoring.viewer`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nAvailable metrics\n-----------------\n\nThe following table displays all available Gemini for\nGoogle Cloud metrics:\n\nView Gemini for Google Cloud metrics in your project\n----------------------------------------------------\n\nCloud Monitoring automatically installs a project-specific\nGemini for Google Cloud\n[dashboard](/monitoring/dashboards) when you enable and use the\nGemini for Google Cloud API.\n\nTo view aggregated metrics for Gemini for Google Cloud\nmetrics, do the following:\n\n1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. In the list, click **Gemini for Google Cloud**.\n\n### Metric labels for non-user metrics\n\nThe following list includes all labels included with Gemini for\nGoogle Cloud metrics. You can use these labels as filters in the\n**Monitoring** dashboard when you view metrics.\n\n- `method` - The service that the user interacted with, including\n `CompleteCode`, `GenerateCode`, `GenerateText`, `CompleteTask`.\n\n- `product` - The Gemini for Google Cloud product that\n received or generated the message, such as `code_assist`.\n\nWhat's next\n-----------\n\n- Learn how to view [Gemini for Google Cloud logs](/gemini/docs/log-gemini).\n- Learn how to [monitor services and resources on Google Cloud](/monitoring/docs/monitoring-overview)."]]