로그와 측정항목을 사용하면 서비스를 모니터링하고 서비스 성능 문제를 해결할 수 있습니다. Google Distributed Cloud (GDC) 에어 갭의 모니터링 및 로깅 리소스를 사용하여 Vertex AI 서비스의 로그와 측정항목을 볼 수 있습니다. 특정 Vertex AI 측정항목을 모니터링하는 쿼리를 만들 수도 있습니다.
이 페이지에서는 모니터링 인스턴스라고도 하는
Distributed Cloud의 모니터링 인스턴스
이 페이지에는 광학 문자 인식 (OCR), Speech-to-Text, Vertex AI Translation과 같은 Vertex AI 플랫폼 및 서비스를 모니터링하는 데 사용할 수 있는 샘플 쿼리도 포함되어 있습니다.
Distributed Cloud의 로깅 및 모니터링 솔루션에 대한 자세한 내용은 측정항목 및 로그 모니터링을 참고하세요.
시작하기 전에
Vertex AI의 로그 및 측정항목을 보는 데 필요한 권한을 얻으려면 프로젝트 IAM 관리자에게 프로젝트 네임스페이스에서 프로젝트 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:"]]