ログと指標を使用すると、サービスをモニタリングし、サービスのパフォーマンスに関する問題のトラブルシューティングを行うことができます。Google Distributed Cloud(GDC)エアギャップのモニタリング リソースとロギング リソースを使用して、Vertex AI サービスのログと指標を表示できます。特定の Vertex AI 指標をモニタリングするクエリを作成することもできます。
このページでは、
Distributed Cloud のモニタリング インスタンス。
このページには、光学式文字認識(OCR)、Speech-to-Text、Vertex AI Translation などの Vertex AI プラットフォームとサービスをモニタリングするために使用できるサンプルクエリも含まれています。Distributed Cloud のロギングとモニタリング ソリューションの詳細については、指標とログをモニタリングするをご覧ください。
始める前に
Vertex AI のログと指標を表示するために必要な権限を取得するには、プロジェクトの IAM 管理者に、プロジェクトの Namespace でプロジェクト Grafana 閲覧者(project-grafana-viewer)ロールを付与するよう依頼してください。
[[["わかりやすい","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\u003eThis page details how to monitor Vertex AI services, such as OCR, Speech-to-Text, and Vertex AI Translation, using logs and metrics within Google Distributed Cloud (GDC) air-gapped.\u003c/p\u003e\n"],["\u003cp\u003eYou can visualize Vertex AI metrics and logs in dashboards by querying operational logs, audit logs, or Prometheus metrics using Grafana.\u003c/p\u003e\n"],["\u003cp\u003eTo view logs and metrics, you must be granted the Project Grafana Viewer (\u003ccode\u003eproject-grafana-viewer\u003c/code\u003e) role by your Project IAM Admin.\u003c/p\u003e\n"],["\u003cp\u003eSample queries are provided for monitoring both the Vertex AI platform's performance, and specific Vertex AI API services, using PromQL for metrics and LogQL for logs.\u003c/p\u003e\n"],["\u003cp\u003eAccessing Vertex AI service monitoring involves signing in to the GDC console, enabling the relevant Vertex AI API, and then navigating to the Grafana interface to explore data sources and create queries.\u003c/p\u003e\n"]]],[],null,["# View Vertex AI logs and metrics\n\nLogs and metrics let you monitor your services and troubleshoot issues with\nservice performance. You can view logs and metrics from Vertex AI\nservices using the monitoring and logging resources from\nGoogle Distributed Cloud (GDC) air-gapped. You can also create queries to monitor specific\nVertex AI metrics.\n\nThis page describes how to query and view logs and metrics from\nVertex AI services in\n\nthe monitoring instance of Distributed Cloud.\n\n\nThis page also contains sample queries that you can use to monitor the\nVertex AI platform and services, such as\nOptical Character Recognition (OCR), Speech-to-Text, and Vertex AI Translation.\nFor more information about logging and monitoring solutions in\nDistributed Cloud, see [Monitor metrics and logs](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/obs-overview).\n\nBefore you begin\n----------------\n\nTo get the permissions you need to view logs and metrics from\nVertex AI, ask your Project IAM Admin to grant you the\nProject Grafana Viewer (`project-grafana-viewer`) role in your project\nnamespace.\n\nFor more information about this role, see [Prepare IAM permissions](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/obs-iam-permissions#p-gr-v).\n\nVisualize logs and metrics in dashboards\n----------------------------------------\n\nYou can view Vertex AI metrics and logs in dashboards. For\nexample, you can create a query to view how Vertex AI affects CPU\nusage.\n\nFollow these steps to view Vertex AI logs and metrics in\ndashboards:\n\n1. [Sign in to the GDC console and select your project](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/iam/sign-in).\n\n2. In the navigation menu, click **Vertex AI** \\\u003e **Pre-trained APIs**.\n\n3. On the **Pre-trained APIs** page, make sure that [the Vertex AI API for the service you want to monitor is enabled](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/vertex-ai-enable-pre-trained-apis).\n\n4. Click **Monitor services in Grafana** to open the Grafana home page.\n\n5. In the navigation menu of the home page, click explore **Explore**\n to open the **Explore** page.\n\n6. From the menu at the **Explore** page, select one of the following data\n sources:\n\n - **Operational Logs**: retrieve operational logs.\n - **Audit Logs**: retrieve audit logs.\n - **Prometheus**: retrieve metrics.\n7. If you want to display metrics, enter a query using\n [PromQL](https://prometheus.io/docs/prometheus/latest/querying/basics/)\n (Prometheus Query Language) expressions.\n\n8. If you want to display logs, enter a query using\n [LogQL](https://grafana.com/docs/loki/latest/logql/) (Log Query\n Language) expressions.\n\nThe page displays the metrics or logs matching your query.\n\n**Figure 1.** Menu option in Grafana to query metrics.\n\nIn figure 1, the **Prometheus** option displays the interface that lets you\nbuild queries to retrieve metrics.\n\nSample queries\n--------------\n\nThe following table contains sample queries to monitor the\nVertex AI platform in your environment:\n\nThe following table contains sample queries to monitor\nVertex AI API services, such as OCR,\nSpeech-to-Text, and Vertex AI Translation, in your environment:"]]