Gemini for Google Cloud は、指標を自動的に収集して Cloud Monitoring に保存します。
Cloud Monitoring のデータ可視化ツールと分析ツールを使用すると、組織内で Gemini for Google Cloudを使用している 1 日のアクティブ ユーザー数など、重要な質問に答えることができます。
制限事項
Gemini for Google Cloud の指標データの記録は、IDE 内での Gemini Code Assist に対するユーザー インタラクションに限定されます。
始める前に
Google Cloud コンソールを使用して指標データを表示するために必要な権限を取得するには、プロジェクトに対するモニタリング閲覧者(roles/monitoring.viewer)の IAM ロールを付与するよう管理者に依頼してください。ロールの付与については、プロジェクト、フォルダ、組織へのアクセス権の管理をご覧ください。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 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)."]]