이 문서에서는 Cloud Monitoring 대시보드, 알림 정책, 쿼리에서 간소화된 Compute Engine API 할당량 측정항목을 사용하는 방법을 설명합니다.
간소화된 API 할당량 측정항목
Compute Engine API 할당량의 검색 가능성과 관리성을 개선하기 위해 Google Cloud 측정항목을 더 적은 수의 할당량 그룹으로 통합하여 할당량 측정항목 수를 줄였습니다. 또한 이러한 간소화된 할당량 측정항목은 각 할당량 그룹에 더 높은 한도를 제공합니다.
다음 표에는 기존 API 할당량 측정항목을 통합하는 모든 간소화된 API 할당량 측정항목이 나와 있습니다.
기존 API 할당량 측정항목
간소화된 API 할당량 측정항목
compute.googleapis.com/list_requests
Read requests per minute compute.googleapis.com/global_readsBETA
compute.googleapis.com/read_requests
compute.googleapis.com/heavy_weight_read_requests
compute.googleapis.com/default
Compute Engine 리소스를 나열하는 메서드의 기존 할당량 측정항목입니다.
값 필드에 API 할당량의 측정항목 이름을 지정합니다.
예를 들어 quota_metric = compute.googleapis.com/global_reads 필터는 정규 표현식을 사용하여 할당량 측정항목 compute.googleapis.com/global_reads를 사용하는 모든 시계열 데이터를 일치시킵니다.
대시보드에 변경사항을 적용하려면 툴바에서 적용을 클릭합니다.
Cloud Monitoring 알림 정책에서 간소화된 API 할당량 측정항목 사용
간소화된 API 할당량 측정항목의 사용량을 모니터링하는 알림 정책을 만들려면 다음 단계를 따르세요.
값 필드에 간소화된 할당량의 측정항목 이름을 지정합니다.
예를 들어 quota_metric = compute.googleapis.com/global_reads 필터는 정규 표현식을 사용하여 할당량 측정항목 compute.googleapis.com/global_reads를 사용하는 모든 시계열 데이터를 일치시킵니다.
완료를 클릭하여 필터의 변경사항을 저장합니다.
정책 저장을 클릭합니다.
Google Cloud Terraform 제공업체를 사용하여Google Cloud 프로젝트에서 알림 정책을 만들 수도 있습니다. 자세한 내용은 Terraform으로 알림 정책 만들기를 참조하세요.
Cloud Monitoring 쿼리에서 간소화된 할당량 측정항목 사용
MQL 기반 또는 PromQL 기반 알림 정책이나 대시보드의 차트에서 간소화된 할당량 측정항목을 사용하려면 쿼리 편집기를 사용하고 쿼리 필터를 수정합니다. 쿼리 편집기 사용을 참조하세요.
쿼리 편집기를 열고 다음 예와 같이 필터를 추가합니다.
MQL:
[[["이해하기 쉬움","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-07-30(UTC)"],[[["\u003cp\u003eThis document details how to utilize the new simplified Compute Engine API quota metrics within Cloud Monitoring for dashboards, alerts, and queries.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud has streamlined Compute Engine API quota metrics by consolidating numerous existing metrics into a smaller set of quota groups, offering higher limits per group.\u003c/p\u003e\n"],["\u003cp\u003eSimplified metrics are categorized into \u003ccode\u003eRead requests\u003c/code\u003e, \u003ccode\u003eMutation requests\u003c/code\u003e, and \u003ccode\u003eCache invalidation requests\u003c/code\u003e with further breakdowns of per region options for Reads and Mutation, to replace many older quota metric types.\u003c/p\u003e\n"],["\u003cp\u003eIn Cloud Monitoring, filters can be used with the \u003ccode\u003equota_metric\u003c/code\u003e field, alongside the new metric names such as \u003ccode\u003ecompute.googleapis.com/global_reads\u003c/code\u003e, to monitor and alert on these simplified metrics.\u003c/p\u003e\n"],["\u003cp\u003eMQL and PromQL queries can be edited to filter for simplified quota metrics, although it is important to note that MQL will be deprecated.\u003c/p\u003e\n"]]],[],null,["# Use simplified API quota metrics in Cloud Monitoring\n\n*** ** * ** ***\n\nThis document describes how to use the simplified Compute Engine API quota metrics in your Cloud Monitoring dashboards, alerting policies, and queries.\n\n\u003cbr /\u003e\n\nSimplified API quota metrics\n----------------------------\n\nTo improve the discoverability and manageability of Compute Engine API\nquota, Google Cloud has reduced the number of quota metrics by consolidating metrics\ninto fewer quota groups. These simplified quota metrics also offer higher limits\nfor each quota group.\n\nThe following table lists all simplified API quota metrics that consolidate the\nexisting API quota metrics:\n\nUse simplified metrics in Cloud Monitoring\n------------------------------------------\n\nTo monitor Compute Engine API usage against the simplified API metrics,\nadd filters for these metrics in your Cloud Monitoring dashboards, alerts, and queries.\n\n### Use the simplified metrics in Cloud Monitoring dashboards\n\nTo use a simplified quota metric in the dashboards, do the following:\n\n1. In the Google Cloud console, go to **Monitoring**:\n\n [Go to Monitoring](https://console.cloud.google.com/monitoring)\n2. In the navigation pane, select **Dashboards**.\n\n3. Select the dashboard that you want to edit to use a simplified metric.\n\n4. Click **Edit dashboard** and add a widget.\n\n5. Add a filter that corresponds to the metric that you want to monitor:\n\n 1. In the **Filter** field, select `quota_metric`.\n 2. In the **Comparator** field, select `=`.\n 3. In the **Value** field, specify the metric name for the API quota. For example, the filter `quota_metric = compute.googleapis.com/global_reads` uses a regular expression to match all time-series data that uses the quota metric `compute.googleapis.com/global_reads`.\n6. To apply your changes to the dashboard, in the toolbar, click **Apply**.\n\n### Use the simplified API quota metrics in Cloud Monitoring alerting policies\n\nTo create an alerting policy to monitor the usage of a simplified API quota metric, do the following:\n\n1. In the Google Cloud console, go to **Monitoring**:\n\n [Go to Monitoring](https://console.cloud.google.com/monitoring)\n2. In the navigation pane, select **Alerting**.\n The Alerting page displays panes that list summary information, incidents,\n and alerting policies.\n\n3. Click **Create policy** to add an alerting policy.\n\n4. Select a filter that corresponds to the metric that you want to monitor:\n\n 1. In the **Filter** field, select `quota_metric`.\n 2. In the **Comparator** field, select `=`.\n 3. In the **Value** field, specify the metric name for the simplified quota. For example, the filter `quota_metric = compute.googleapis.com/global_reads` uses a regular expression to match all time-series data that uses the quota metric `compute.googleapis.com/global_reads`.\n 4. Click **Done** to save changes in the filter.\n5. Click **Save policy**.\n\nYou can also use the Google Cloud Terraform Provider to create alerting policies in your\nGoogle Cloud project. For more information,\nsee [Create alerting policies with Terraform](/monitoring/alerts/terraform).\n\n### Use simplified quota metrics in Cloud Monitoring queries\n\nTo use the simplified quota metric in a PromQL-based alerting policy or a chart\nin a dashboard, use the Query Editor and edit the query filter. See\n[Use the code editor for PromQL](/monitoring/promql/promql-in-monitoring).\nOpen the Query Editor and add the filter as shown in the following\nexample: \n\n```\n sum(rate(serviceruntime_googleapis_com:quota_rate_net_usage{monitored_resource=\"consumer_quota\", \\\n quota_metric=~\"compute.googleapis.com/global_reads\"}[${__interval}]))\n```"]]